editing
approved
editing
approved
a:= n-> parse(""||(n^3)[1]):
seq(a(n), n=0..100); # Alois P. Heinz, Aug 06 2021
approved
editing
proposed
approved
editing
proposed
Initial digits digit of cubes.
(PARI) a(n) = if (n, digits(n^3)[1], 0); \\ Michel Marcus, Dec 13 2017
approved
editing
editing
approved
a(n) = A000030(A000578(n)). - Reinhard Zumkeller, Aug 17 2008
(Haskell)
a002994 = a000030 . a000578 -- Reinhard Zumkeller, Apr 01 2015
approved
editing
proposed
approved
editing
proposed
a[n_] := First[IntegerDigits[n^3]]; Table[a[n], {n, 0, 100}] [From (* _Vladimir Joseph Stephan Orlovsky, _, Dec 21 2008] *)
approved
editing