## Minimum time to reach a point with +t and -t moves at time t

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 »

## First triangular number whose number of divisors exceeds N

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 »

## Centered triangular number in PL/SQL

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 »

## Sum of first n natural numbers

Given a positive integer n. The task is to find the sum of the sum of first n natural number. Examples: Input : n =… Read More »

## Centered triangular number

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… Read More »

## Squared triangular number (Sum of cubes)

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 »

## Smallest triangular number larger than p

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 »

## Triangular Matchstick Number

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 »

## Program to print triangular number series till n

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 »

## Sum of the series 1, 3, 6, 10… (Triangular Numbers)

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:… Read More »

## Triangular Numbers

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 »