login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Fib001 primes, i.e., primes p whose Zeckendorf-expansion A014417(p) ends with two zeros and final 1.
3

%I #15 May 07 2021 13:28:47

%S 19,43,53,61,103,137,163,179,197,229,239,263,281,307,331,349,383,433,

%T 467,509,569,577,619,653,739,773,797,823,839,857,883,907,941,967,1009,

%U 1051,1061,1069,1103,1129,1153,1171,1187,1213,1229,1289

%N Fib001 primes, i.e., primes p whose Zeckendorf-expansion A014417(p) ends with two zeros and final 1.

%H A. Karttunen and J. Moyer, <a href="/A095062/a095062.c.txt">C-program for computing the initial terms of this sequence</a>

%o (Python)

%o from sympy import fibonacci, primerange

%o def a(n):

%o k=0

%o x=0

%o while n>0:

%o k=0

%o while fibonacci(k)<=n: k+=1

%o x+=10**(k - 3)

%o n-=fibonacci(k - 1)

%o return x

%o def ok(n): return str(a(n))[-3:]=="001"

%o print([n for n in primerange(1, 1301) if ok(n)]) # _Indranil Ghosh_, Jun 08 2017

%Y Intersection of A000040 and A095098. Cf. A014417, A095066.

%K nonn

%O 1,1

%A _Antti Karttunen_, Jun 01 2004