Enter the smaller integer n to calculate (n+1)³ − n³. For example, n = 4 gives 5³ − 4³ = 125 − 64 = 61. Negative integers and zero are supported.

\[(n+1)^3-n^3=n^3+3n^2+3n+1-n^3=3n(n+1)+1\]

Enter an integer from −1,000,000 to 1,000,000 and leave the fixed constant at 1. The result subtracts the cube of n from the cube of n+1.

For n = 4, multiply 4 × 5 = 20, add that product three times to get 60, then add 1 to obtain 61.

The calculator evaluates 3n(n+1)+1 directly, avoiding subtraction of two large cubes. The input range keeps integer intermediate values and results within exact binary floating-point integer precision. Use integer inputs: outputs are displayed with no decimal places. An unavailable result indicates a calculation or input problem; it does not mean zero.

Examples of differences between consecutive cubes
nn³(n+1)³Difference
−3−27−819
−1−101
0011
1187
282719
46412561
1010001331331
Why is the difference always positive for integer n?

For any integer n, the product n(n+1) is nonnegative. Therefore 3n(n+1)+1 is at least 1, including when n is negative.

Is the difference always odd?

Yes, for integer n. One of the consecutive integers n and n+1 is even, so n(n+1) is even. Consequently, 3n(n+1)+1 is odd and has remainder 1 when divided by 6.

Does the formula work for decimal values?

The algebraic identity holds for all real n, but consecutive integers require integer inputs. This calculator is configured for integers and displays whole-number results.

No registered thumbnail asset was supplied. Image creation and registration are required before activation: a 400 × 400 pixel WebP featuring the existing cheerful yellow five-point star mascot floating with hands and no separate legs or feet, on a white background with navy, blue and teal cube graphics. Inspect neighboring thumbnails for style consistency. Add the registered asset as the first image block and remove this draft note when complete.

Cute yellow star mascot illustrating Difference of Consecutive Cubes Calculator.
· AI-generated with OpenAI image generation