OFFSET
1,3
COMMENTS
"No final 0's" means that the rotated number should not have leading zeros; the single digit of the number 0 itself is not considered as such.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..12501 (all terms < 10^6; terms 1..2501 from Michel Marcus).
MATHEMATICA
A045574list[k_] := Flatten[{#, Table[Map[FromDigits, Tuples[Join[{Rest[#]}, Table[#, d-2], {Rest[#]}]]], {d, 2, k}]}] & [{0, 1, 6, 8, 9}]; (* Generates all terms < 10^k *)
A045574list[3] (* Paolo Xausa, Feb 05 2026 *)
PROG
(PARI) is_A045574(n)=n%10 & !setminus(Set(Vec(Str(n))), Vec("01689")) || !n \\ M. F. Hasler, May 04 2012
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Dec 27 2020
STATUS
approved
