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 A174574 #19 May 09 2021 05:07:59 %S A174574 0,1,1,2,4,3,3,4,4,5,7,8,10,13,11,10,10,9,9,10,10,11,13,12,12,13,13, %T A174574 14,16,17,19,22,22,23,25,26,28,31,33,36,40,37,35,34,32,31,31,30,30,31, %U A174574 29,28,28,27,27,28,28,29,31,30,30,31,31,32,34,35,37,40,38,37,37,36,36,37 %N A174574 Partial sums of A065363. %H A174574 Daniel Forgues, <a href="/A174574/b174574.txt">Table of n, a(n) for n = 0..100000</a> %F A174574 a(0) = 0, a(n) = a(n-1) + A065363(n), n >= 1. %F A174574 a(n) <= n with equality iff n belongs to A003462. - _Rémy Sigrist_, Oct 05 2019 %o A174574 (Python) %o A174574 def a065363(n): %o A174574 s=0 %o A174574 x=0 %o A174574 while n>0: %o A174574 x=n%3 %o A174574 n//=3 %o A174574 if x==2: %o A174574 x=-1 %o A174574 n+=1 %o A174574 s+=x %o A174574 return s %o A174574 l=[0] %o A174574 for n in range(1, 101): l.append(l[n - 1] + a065363(n)) %o A174574 print(l) # _Indranil Ghosh_, Jun 07 2017 %Y A174574 Cf. A003462, A065363, A140267. %K A174574 nonn,base %O A174574 0,4 %A A174574 _Daniel Forgues_, Mar 23 2010