OFFSET
1,3
REFERENCES
Philip Carter & Ken Russell, Problem 31, p. 86, The Complete Book of Fun Maths, John Wiley, 2004.
FORMULA
a(n) = A033819(n)^3.
EXAMPLE
6 * 6 * 6 = 216, which has "6" as rightmost digit.
MATHEMATICA
Select[Range[0, 100]^3, Mod[#, 10]==Surd[#, 3]||Mod[#, 100]==Surd[#, 3]&] (* Harvey P. Dale, Mar 03 2023 *)
PROG
(PARI) apply(x->x^3, select(x -> (x^3 - x) % 10^(#digits(x)) == 0, [0..99])) \\ David A. Corneth, Feb 11 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Jonathan Vos Post, Aug 16 2012
STATUS
approved