## C Program for cube sum of first n natural numbers

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term. Examples: Input : n = 5 Output… Read More »

## C++ Program for cube sum of first n natural numbers

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term. Examples: Input : n = 5 Output… Read More »

## Java Program for cube sum of first n natural numbers

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term. Examples: Input : n = 5 Output… Read More »

## Python Program for cube sum of first n natural numbers

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term. Examples: Input : n = 5 Output… Read More »

## Program for Volume and Surface Area of Cube

Cube is a 3-dimensional box-like figure represented in the 3-dimensional plane. Cube has 6 squared-shape equal faces. Each face meet another face at 90 degree… Read More »

## Count all triplets whose sum is equal to a perfect cube

Given an array of n integers, count all different triplets whose sum is equal to the perfect cube i.e, for any i, j, k(i <… Read More »

## Sum of cubes of first n odd natural numbers

Given a number n, find sum of first n odd natural numbers. Input : 2 Output : 28 1^3 + 3^3 = 28 Input :… Read More »

## Sum of cubes of first n even numbers

Given a number n, find sum of first n even natural numbers. Examples: Input : 2 Output : 72 2^3 + 4^3 = 72 Input… Read More »

## Count pairs (a, b) whose sum of cubes is N (a^3 + b^3 = N)

Given N, count all ‘a’ and ‘b’ that satisfy the condition a^3 + b^3 = N. Examples: Input : N = 9 Output : 2… Read More »

## Perfect cubes in a range

Given two given numbers a and b where 1 <= a <= b, find perfect cubes between a and b (a and b inclusive). Examples:… Read More »

## Find Cube Pairs | Set 2 (A n^(1/3) Solution)

Given a number n, find two pairs that can represent the number as sum of two cubes. In other words, find two pairs (a, b)… Read More »

## Find Cube Pairs | Set 1 (A n^(2/3) Solution)

Given a number n, find two pairs that can represent the number as sum of two cubes. In other words, find two pairs (a, b)… Read More »