A101705 Numbers n such that n = 12*reversal(n).
0, 540, 5940, 54540, 59940, 540540, 599940, 5400540, 5454540, 5945940, 5999940, 54000540, 54594540, 59405940, 59999940, 540000540, 540540540, 545454540, 545994540, 594005940, 594545940, 599459940, 599999940, 5400000540, 5405940540, 5454054540, 5459994540, 5940005940, 5945945940, 5994059940, 5999999940
Offset: 1
Examples
g(540,0,5)= (540)(6) = 540540540540540540 is in the sequence because reversal(540540540540540540) = 45045045045045045 and 12*45045045045045045 = 540540540540540540.
Links
- Ray Chandler, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Do[If[n == 12*FromDigits[Reverse[IntegerDigits[n]]], Print[n]], {n, 0, 6000000000, 60}] Select[Range[0,6*10^9,60],#==12IntegerReverse[#]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 12 2017 *)
-
Python
def A101705(n): if n == 1: return 0 a = 1<
Chai Wah Wu, Jul 23 2024
Formula
a(n) = 540*A057148. - Ray Chandler, Oct 09 2017
Extensions
a(25)-a(31) from Max Alekseyev, Aug 18 2013
Comments