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.
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.
| n | n³ | (n+1)³ | Difference |
|---|---|---|---|
| −3 | −27 | −8 | 19 |
| −1 | −1 | 0 | 1 |
| 0 | 0 | 1 | 1 |
| 1 | 1 | 8 | 7 |
| 2 | 8 | 27 | 19 |
| 4 | 64 | 125 | 61 |
| 10 | 1000 | 1331 | 331 |
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.

