This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A035523 #25 Mar 31 2020 04:44:36 %S A035523 1,2,4,8,16,32,96,160,320,960,1600,2880,3520,6080,11200,21440,62400, %T A035523 86080,169280,338560,648248,1902840,3281200,6404832,6510784,12950936, %U A035523 25744192,51882584,156278688,261609208,506142216,531792640,1008314456,2014504120 %N A035523 Reverse and add (in base 3). %H A035523 T. D. Noe, <a href="/A035523/b035523.txt">Table of n, a(n) for n = 0..500</a> %F A035523 a(n) = A055946(a(n-1)). - _R. J. Mathar_, May 28 2016 %e A035523 32 = 1012, 1012 + 2101 = 10120 = 96. %p A035523 A035523 := proc(n) %p A035523 option remember; %p A035523 if n =1 then %p A035523 1; %p A035523 else %p A035523 A055946(procname(n-1)) ; %p A035523 end if; %p A035523 end proc: # _R. J. Mathar_, May 28 2016 %t A035523 NestList[ (Fold[ 3 #1+#2&, 0, Reverse@IntegerDigits[ #, 3 ] ]+#&), 1, 40 ] %t A035523 Join[{m = 1}, Table[m = m + FromDigits[Reverse[IntegerDigits[m, 3]], 3], {35}]] (* _T. D. Noe_, May 02 2012 *) %t A035523 NestList[#+IntegerReverse[#,3]&,1,40] (* The program uses the IntegerRevese function from Mathematica version 10 *) (* _Harvey P. Dale_, Feb 21 2016 *) %o A035523 (Python) %o A035523 def reversedigits(n, b=10): # reverse digits of n in base b %o A035523 x, y = n, 0 %o A035523 while x >= b: %o A035523 x, r = divmod(x, b) %o A035523 y = b*y + r %o A035523 return b*y + x %o A035523 A035523_list, l = [1], 1 %o A035523 for _ in range(50): %o A035523 l += reversedigits(l, 3) %o A035523 A035523_list.append(l) %o A035523 # _Chai Wah Wu_, Jan 03 2015 %Y A035523 Cf. A035522. %K A035523 nonn,easy,nice,base %O A035523 0,2 %A A035523 _N. J. A. Sloane_ %E A035523 More terms from _Wouter Meeussen_