OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(5) = 3 because the Zeckendorf representation of the 5th prime is 11 = 3 + 8.
PROG
(Python)
from sympy import prime
def A138182(n):
m, tlist = prime(n), [1, 2]
while tlist[-1]+tlist[-2] <= m:
tlist.append(tlist[-1]+tlist[-2])
for d in tlist[::-1]:
if d == m:
return d
elif d < m:
m -= d # Chai Wah Wu, Jun 14 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Colm Mulcahy, Mar 04 2008
EXTENSIONS
a(8) replaced by 1. Sequence extended beyond a(18) - R. J. Mathar, Oct 23 2010
STATUS
approved