A095089 Fib101 primes, i.e., primes p whose Zeckendorf-expansion A014417(p) ends as one, zero, one.
17, 59, 67, 101, 127, 211, 271, 313, 347, 373, 389, 449, 457, 491, 499, 593, 601, 643, 661, 677, 787, 821, 881, 983, 991, 1033, 1093, 1109, 1237, 1279, 1321, 1381, 1423, 1499, 1559, 1567, 1601, 1609, 1669, 1753, 1787, 1847, 1889, 1931, 1999
Offset: 1
Keywords
Links
- A. Karttunen and J. Moyer, C-program for computing the initial terms of this sequence
Programs
-
Python
from sympy import fibonacci, primerange def a(n): k=0 x=0 while n>0: k=0 while fibonacci(k)<=n: k+=1 x+=10**(k - 3) n-=fibonacci(k - 1) return x def ok(n): return str(a(n))[-3:]=="101" print([n for n in primerange(1, 2001) if ok(n)]) # Indranil Ghosh, Jun 08 2017
Comments