Tutorials
Courses
Go Premium
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
32.1K+ articles
DSA
20.0K+ articles
Misc
7.8K+ articles
Mathematical
5.1K+ articles
series
515+ articles
number-theory
424+ articles
Basic Coding Problems
371+ articles
Natural Numbers
131+ articles
series-sum
125+ articles
maths-perfect-cube
19+ articles
maths-cube
39 posts
Recent Articles
Popular Articles
Represent Integer as sum of exactly X Powers of three. The powers can repeat
Last Updated: 26 September 2023
Given two integers N and X (1=N=X=1e9), the task is to find if it is possible to represent N as exactly X powers of 3.Examples:Input: N = 9, X = 5Output: Yes Explanation:...
read more
Mathematical
DSA
cpp-math
maths-cube
Find N-th term in the series 0, 4, 18, 48, 100 ...
Last Updated: 06 December 2021
Given a series 0, 4, 18, 48, 100 . . . and an integer N, the task is to find the N-th term of the series.Examples:Input: N = 4Output: 48Explanation: As given in the sequen...
read more
Pattern Searching
Mathematical
DSA
maths-perfect-square
maths-cube
Sequence and Series
Check if a number can be represented as product of two positive perfect cubes
Last Updated: 23 July 2025
Given a positive integer N, the task is to check if the given number N can be represented as the product of two positive perfect cubes or not. If it is possible, then prin...
read more
Searching
Mathematical
Hash
DSA
maths-cube
maths-perfect-cube
Check if digit cube limit of an integer arrives at fixed point or a limit cycle
Last Updated: 15 July 2025
Given an integer N, the task is to check if the Digit Cube limit of an integer arrives at a fixed point or in a limit cycle.A Digit Cube Limit is a number which repeatedly...
read more
Searching
Mathematical
C++ Programs
Articles
DSA
number-theory
maths-cube
maths-power
C Program to check whether a number is a Perfect Cube or not
Last Updated: 15 July 2025
Given a number N, the task is to write C program to check if the given number is perfect cube or not.Examples:Input: N = 216Output: YesExplanation:As 216 = 6*6*6.Therefore...
read more
C Language
Binary Search
maths-cube
maths-power
maths-perfect-cube
Maths
Check whether a number can be represented as difference of two consecutive cubes
Last Updated: 01 October 2023
Given a number N, the task is to check if the number N can be represented as the difference of two consecutive cubes or not. If Yes then print those numbers else print No....
read more
DSA
maths-cube
maths-perfect-cube
Natural Numbers
Average of Cubes of first N natural numbers
Last Updated: 15 July 2025
Given a positive integer N, the task is to find the average of cubes of the first N natural numbers.Examples:Input: N = 2Output: 4.5Explanation:For integer N = 2,We have (...
read more
DSA
maths-cube
Natural Numbers
Find the integral roots of a given Cubic equation
Last Updated: 15 July 2025
Given 5 integers say A, B, C, D, and E which represents the cubic equationf(x) = A*x^{3} + B*x^{2} + C*x + D = E, the task is to find the integral solution for this equati...
read more
DSA
Binary Search
Algebra
maths-cube
root
Minimum value of K such that sum of cubes of first K natural number is greater than equal to N
Last Updated: 15 July 2025
Given a number N, the task is to find the minimum value K such that the sum of cubes of the first K natural number is greater than or equal to N.Examples:Input: N = 100Out...
read more
DSA
maths-cube
Natural Numbers
Construct an Array such that cube sum of all element is a perfect square
Last Updated: 05 September 2022
Given the size of array N, the task is to construct an array of size N with positive integer elements such that the cube sum of all elements of this array is a perfect squ...
read more
DSA
maths-perfect-square
maths-cube
maths-perfect-cube
Construct an Array of size N whose sum of cube of all elements is a perfect square
Last Updated: 15 July 2025
Given an integer N, the tasks is to construct a sorted array arr[] of size N, such that the sum of cube of all elements is a perfect square, i.e.\sum_{}A_i^3=X^2, where X ...
read more
DSA
maths-perfect-square
maths-cube
Natural Numbers
Sum of alternating sign cubes of first N Natural numbers
Last Updated: 12 July 2025
Given a number N, the task is to find the sum of alternating sign cubes of first N natural numbers, i.e.,13 - 23 + 33 - 43 + 53 - 63 + ....Examples:Input: N = 2Output: -7E...
read more
Mathematical
DSA
series
series-sum
maths-cube
Find Cube root of a number using Log function
Last Updated: 12 July 2025
Given the number N, the task is to find the cube root using the log function.Examples:Input: N = 8Output: 2.000000Input: N = 27Output: 3.000000Approach: To solve the probl...
read more
DSA
maths-cube
root
Print N numbers such that their product is a Perfect Cube
Last Updated: 12 July 2025
Given a number N, the task is to find distinct N numbers such that their product is a perfect cube.Examples:Input: N = 3Output: 1, 8, 27Explanation:Product of the output n...
read more
DSA
maths-cube
maths-perfect-cube
Natural Numbers
Check whether N can be a Perfect Cube after adding or subtracting K
Last Updated: 12 July 2025
Given two integers N and K, the task is to check whether N can be made a perfect cube after adding to or subtracting from K to or from it.Examples:Input: N = 7, K = 1Outpu...
read more
Mathematical
DSA
maths-cube
1
2
3
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 !