Skip to content

Tag Archives: triangular-number

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:… Read More
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… Read More
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’… Read More
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… Read More
Prerequisite – PL/SQL introduction In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part,… Read More
Given a positive integer n. The task is to find the sum of the sum of first n natural number.Examples:   Input : n = 3… Read More
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… Read More
Given a number s (1 <= s <= 1000000000). If s is sum of the cubes of the first n natural numbers then print n,… Read More
Given n number of buckets and each bucket is numbered from 1 to n and flowers in it are equal to triangular numbers. You have… Read More
Given a number X which represents the floor of a matchstick pyramid, write a program to print the total number of matchstick required to form… Read More
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… Read More
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:… Read More
A number is termed as triangular number if we can represent it in the form of triangular grid of points such that the points form… Read More

Start Your Coding Journey Now!