login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345111
a(n) = n + A345110(n).
5
0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 11, 22, 33, 44, 55, 66, 77, 88, 99, 110, 22, 33, 44, 55, 66, 77, 88, 99, 110, 121, 33, 44, 55, 66, 77, 88, 99, 110, 121, 132, 44, 55, 66, 77, 88, 99, 110, 121, 132, 143, 55, 66, 77, 88, 99, 110, 121, 132, 143, 154, 66, 77, 88
OFFSET
0,2
COMMENTS
First differs from both A052008 and A056964 at n = 101.
EXAMPLE
For n = 101: 101 + A345110(101) = 101 + 11 = 112, so a(101) = 112.
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) = n + eva(rot(digits(n)))
(Python)
def rotl(s): return s[1:] + s[0]
def a(n): return n + int(rotl(str(n)))
print([a(n) for n in range(63)]) # Michael S. Branicky, Jun 09 2021
KEYWORD
nonn,base,easy
AUTHOR
Felix Fröhlich, Jun 09 2021
STATUS
approved