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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A182578 Number of ones in Zeckendorf representation of n^n. 1
1, 1, 2, 3, 3, 6, 3, 10, 13, 12, 16, 15, 20, 24, 20, 30, 25, 31, 26, 33, 33, 31, 34, 42, 49, 49, 53, 55, 56, 55, 58, 64, 64, 67, 73, 78, 70, 76, 77, 75, 89, 83, 92, 90, 106, 99, 100, 99, 107, 116, 107, 115, 125, 125, 122, 119, 127, 137, 127, 138, 155, 156, 153, 160 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Chai Wah Wu, Table of n, a(n) for n = 0..10000

EXAMPLE

5^5 = {1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0} in the Zeckendorf base.

PROG

(Python)

def A182578(n):

    m, tlist, s = n**n, [1, 2], 0

    while tlist[-1]+tlist[-2] <= m:

        tlist.append(tlist[-1]+tlist[-2])

    for d in tlist[::-1]:

        if d <= m:

            s += 1

            m -= d

    return s # Chai Wah Wu, Jun 14 2018

CROSSREFS

Cf. A007895, A020908, A020910, A025496-A025502, A182535, A182576, A182577, A000312.

Sequence in context: A054892 A104570 A071915 * A021432 A274824 A141729

Adjacent sequences:  A182575 A182576 A182577 * A182579 A182580 A182581

KEYWORD

nonn

AUTHOR

Alex Ratushnyak, May 05 2012

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 July 5 03:05 EDT 2020. Contains 335457 sequences. (Running on oeis4.)