OFFSET
1,4
COMMENTS
Conjecture: a(n) > 0 for all n > 1.
We have verified this for n up to 60000.
Note that for n = 19976 there is no k = 0,...,n such that F(k) + q(n-k) is prime, where F(0), F(1), ... are the Fibonacci numbers.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..5000
EXAMPLE
a(7) = 2 since L(1) + q(6) = 1 + 4 = 5 and L(6) + q(1) = 18 + 1 = 19 are both prime.
a(17) = 1 since L(13) + q(4) = 521 + 2 = 523 is prime.
a(21) = 1 since L(5) + q(16) = 11 + 32 = 43 is prime.
a(42) = 1 since L(22) + q(20) = 39603 + 64 = 39667 is prime.
a(54) = 1 since L(8) + q(46) = 47 + 2304 = 2351 is prime.
a(86) = 1 since L(67) + q(19) = 100501350283429 + 54 = 100501350283483 is prime.
MATHEMATICA
a[n_]:=Sum[If[PrimeQ[LucasL[k]+PartitionsQ[n-k]], 1, 0], {k, 1, n-1}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Dec 08 2013
STATUS
approved