A350869 a(n) = Sum_{i=0..10^n-1} i^3.
0, 2025, 24502500, 249500250000, 2499500025000000, 24999500002500000000, 249999500000250000000000, 2499999500000025000000000000, 24999999500000002500000000000000, 249999999500000000250000000000000000, 2499999999500000000025000000000000000000
Offset: 0
Examples
a(1) = Sum_{i=0..9} i^3 = (Sum_{i=0..9} i)^2 = 2025.
Links
- Index entries for linear recurrences with constant coefficients, signature (11100,-11100000,1000000000).
Programs
-
Mathematica
a[n_] := (10^n*(10^n - 1)/2)^2; Array[a, 11, 0] (* Amiram Eldar, Jan 20 2022 *)
-
PARI
a(n) = my(x=10^n-1); (x*(x+1)/2)^2; \\ Michel Marcus, Jan 22 2022
Comments