login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A174574 Partial sums of A065363. 1
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, 14, 16, 17, 19, 22, 22, 23, 25, 26, 28, 31, 33, 36, 40, 37, 35, 34, 32, 31, 31, 30, 30, 31, 29, 28, 28, 27, 27, 28, 28, 29, 31, 30, 30, 31, 31, 32, 34, 35, 37, 40, 38, 37, 37, 36, 36, 37 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

Daniel Forgues, Table of n, a(n) for n = 0..100000

FORMULA

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

a(n) <= n with equality iff n belongs to A003462. - Rémy Sigrist, Oct 05 2019

PROG

(Python)

def a065363(n):

    s=0

    x=0

    while n>0:

        x=n%3

        n=n/3

        if x==2:

            x=-1

            n+=1

        s+=x

    return s

l=[0]

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

print l # Indranil Ghosh, Jun 07 2017

CROSSREFS

Cf. A003462, A065363, A140267.

Sequence in context: A299920 A137363 A110549 * A161413 A201049 A303354

Adjacent sequences:  A174571 A174572 A174573 * A174575 A174576 A174577

KEYWORD

nonn,base

AUTHOR

Daniel Forgues, Mar 23 2010

STATUS

approved

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 October 22 00:52 EDT 2019. Contains 328315 sequences. (Running on oeis4.)