OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..500
Wikipedia, Transposable integer
FORMULA
a(n) = 9/91*(2+((n-1) mod 9))*(10^(6*floor((n+8)/9))-1). - Alois P. Heinz, Jun 28 2012
EXAMPLE
197802 belongs to this sequence, since 21978 is obtained by moving the two least significant digits "02" to the front and 197802/9 = 21978.
MAPLE
a:= proc(n) local h;
9/91*(2+irem(n-1, 9, 'h'))*(10^(6*(h+1))-1)
end:
seq (a(n), n=1..30); # Alois P. Heinz, Jun 28 2012
MATHEMATICA
lst = {}; Do[d = IntegerDigits[n]; m = FromDigits@Take[d, -2]*10^(IntegerLength[n] - 2) + FromDigits@Drop[d, -2]; If[n/9 == m, AppendTo[lst, n]], {n, 18, 10^6, 9}]; lst
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Arkadiusz Wesolowski, Jun 22 2012
EXTENSIONS
More terms from Alois P. Heinz, Jun 28 2012
STATUS
approved