The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.



Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A174574 Partial sums of A065363. 1


%S 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 14,16,17,19,22,22,23,25,26,28,31,33,36,40,37,35,34,32,31,31,30,30,31,

%U 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 Partial sums of A065363.

%H Daniel Forgues, <a href="/A174574/b174574.txt">Table of n, a(n) for n = 0..100000</a>

%F a(0) = 0, a(n) = a(n-1) + A065363(n), n >= 1.

%F a(n) <= n with equality iff n belongs to A003462. - _Rémy Sigrist_, Oct 05 2019

%o (Python)

%o def a065363(n):

%o s=0

%o x=0

%o while n>0:

%o x=n%3

%o n=n/3

%o if x==2:

%o x=-1

%o n+=1

%o s+=x

%o return s

%o l=[0]

%o for n in range(1, 101): l+=[l[n - 1] + a065363(n), ]

%o print l # _Indranil Ghosh_, Jun 07 2017

%Y Cf. A003462, A065363, A140267.

%K nonn,base

%O 0,4

%A _Daniel Forgues_, Mar 23 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 4 21:58 EST 2020. Contains 338941 sequences. (Running on oeis4.)