OFFSET
0,3
EXAMPLE
For n = 123: When 123 is rotated one place to the left the resulting number is 231, so a(123) = 231.
MATHEMATICA
Array[FromDigits@*RotateLeft@*IntegerDigits, 100, 0] (* Giorgos Kalogeropoulos, Jun 09 2021 *)
PROG
(PARI) eva(n) = subst(Pol(n), x, 10)
rot(vec) = if(#vec < 2, return(vec)); my(s=concat(Str(2), ".."), v=[]); s=concat(s, Str(#vec)); v=vecextract(vec, s); v=concat(v, vec[1]); v
a(n) = eva(rot(digits(n)))
(Python)
def rotl(s): return s[1:] + s[0]
def a(n): return int(rotl(str(n)))
print([a(n) for n in range(69)]) # Michael S. Branicky, Jun 09 2021
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Felix Fröhlich, Jun 09 2021
STATUS
approved