A269249 Number of times the digit 9 appears in the decimal expansion of n^3.
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 2, 0, 1, 1, 0, 0, 0, 0, 2, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0
Offset: 0
Examples
0^3 = 0, 1^3 = 1, 2^3 = 8, 3^3 = 27, 4^3 = 64, ... and 8^3 = 512 all have a(0) = a(1) = ... = a(8) = 0 digits '9'. 9^3 = 729 has a(9) = 1 digit '9'.
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
Crossrefs
Programs
-
Mathematica
DigitCount[(Range[0, 100])^3, 10, 9] (* G. C. Greubel, Dec 13 2016 *)
-
PARI
A269249(n)=#select(t->t==9,digits(n^3))
Comments