login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

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

%I #19 May 09 2021 05:07:59

%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//=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.append(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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 08:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)