Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
series
515+ articles
Bitwise-XOR
443+ articles
Data Structures
150+ articles
series-sum
125+ articles
triangle
124+ articles
maths-cube
39+ articles
triangular-number
14 posts
Recent Articles
Popular Articles
Paths of Triangular Number in a Binary Tree
Last Updated: 24 February 2024
Given a Binary Tree, the task is to output the Count of the number of paths formed by only a Triangular number. Xth Triangular number is the sum of the first X natural num...
read more
Tree
Preorder Traversal
Binary Tree
triangular-number
Geeks Premier League
DSA
Geeks Premier League 2023
Find the XOR of smallest and largest triangular number in a given range
Last Updated: 22 August 2023
Given a range, find the XOR of the smallest and largest triangular numbers within that range.A triangular number is a number that can be represented as the sum of consecut...
read more
Bitwise-XOR
Data Structures
triangular-number
DSA
Replace every node in a linked list with its closest triangular number
Last Updated: 28 August 2023
Given a singly linked list, the task is to replace every node with its closest triangular number.Examples:Input: 3 - 9 - 21 - 25 - NULLOutput: 3 - 10 - 21 - 28 - NULLExpla...
read more
Linked List
Linked Lists
Data Structures
triangular-number
DSA
Sum of all possible strings obtained by removal of non-empty substrings
Last Updated: 17 September 2024
Given numerical string str consisting of N integers, the task is to find the sum of all possible resulting strings after removing non-empty substrings.Examples:Input: str ...
read more
Strings
Pattern Searching
Mathematical
prefix-sum
substring
triangular-number
DSA
Index of smallest triangular number with N digits
Last Updated: 21 December 2023
Given a number N, the task is to find the index of smallest triangular number with N digits.A number is termed as a triangular number if we can represent it in the form of...
read more
Mathematical
number-digits
triangular-number
DSA
Minimum time to reach a point with +t and -t moves at time t
Last Updated: 29 November 2023
Given a positive coordinate 'X' and you are at coordinate '0', the task is to find the minimum time required to get to coordinate 'X' with the following move :At time 't',...
read more
Greedy
Mathematical
triangular-number
DSA
First triangular number whose number of divisors exceeds N
Last Updated: 29 July 2022
Given a number N, find the first triangular number whose number of divisors exceeds N. Triangular numbers are sums of natural numbers, i. e., of the form x*(x+1)/2. First ...
read more
Competitive Programming
Prime Number
divisors
triangular-number
DSA
Centered triangular number in PL/SQL
Last Updated: 31 October 2018
Prerequisite - PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we decl...
read more
SQL
SQL-PL/SQL
triangular-number
Sum of Sums first n natural numbers
Last Updated: 25 November 2024
Given a positive integer n. The task is to find the sum of the sum of first n natural number.Examples:Input: n = 3Output: 10Explanation:Sum of first natural number: 1Sum o...
read more
Mathematical
series
series-sum
triangular-number
DSA
Centered triangular number
Last Updated: 29 March 2023
Given an integer n, find the nth Centered triangular number.Centered Triangular Number is a centered polygonal number that represents a triangle with a dot in the center a...
read more
Mathematical
series
triangular-number
DSA
Squared triangular number (Sum of cubes)
Last Updated: 12 September 2022
Given a number s (1 = s = 1000000000). If s is sum of the cubes of the first n natural numbers then print n, otherwise print -1.First few Squared triangular number are 1, ...
read more
Mathematical
series
series-sum
maths-cube
triangular-number
DSA
Program to print triangular number series till n
Last Updated: 08 February 2023
A triangular number or triangle number counts objects arranged in an equilateral triangle, as in the diagram on the right. The n-th triangular number is the number of dots...
read more
Mathematical
series
triangular-number
DSA
Sum of the series 1, 3, 6, 10... (Triangular Numbers)
Last Updated: 16 August 2022
Given n, no of elements in the series, find the summation of the series 1, 3, 6, 10....n. The series mainly represents triangular numbers.Examples:Input: 2Output: 4Explana...
read more
Mathematical
triangle
series
triangular-number
DSA
Triangular Numbers
Last Updated: 12 February 2025
A number is termed a triangular number if we can represent it in the form of a triangular grid of points such that the points form an equilateral triangle and each row con...
read more
Mathematical
triangle
series
triangular-number
DSA
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !