A327825 "Rotation" of n: swap the first [d/2] and last [d/2] digits, when n has d digits.
979, 89, 189, 289, 389, 489, 589, 689, 789, 889, 989, 99, 199, 299, 399, 499, 599, 699, 799, 899, 999, 10, 110, 210, 310, 410, 510, 610, 710, 810, 910, 1010, 1110, 1210, 1310, 1410, 1510, 1610, 1710, 1810, 1910, 2010, 2110, 2210, 2310, 2410, 2510, 2610, 2710, 2810, 2910, 3010, 3110, 3210
Offset: 979
Examples
a(123) = concat(3, 2, 1) = 321. a(1234) = concat(34, 12) = 3412. a(12345) = concat(45, 3, 12) = 45312.
Programs
-
PARI
a(n)={n=digits(n); fromdigits(concat([n[#n\/2+1..#n],n[#n\2+1..#n\/2],n[1..#n\2]]))}
Formula
a(n) = A004086(n) ("reverse n") for n < 1000.
Comments