A231555 Number of ways to write n = x + y (x, y > 0) with x*(x + 1) + F(y) prime, where F(y) denotes the y-th Fibonacci number (A000045).
0, 1, 2, 2, 2, 2, 3, 3, 3, 1, 2, 4, 2, 3, 4, 6, 3, 5, 1, 3, 5, 6, 6, 4, 5, 5, 4, 7, 5, 1, 5, 6, 6, 6, 6, 6, 8, 6, 5, 5, 5, 5, 6, 3, 4, 8, 9, 8, 4, 5, 8, 8, 6, 5, 9, 5, 9, 8, 8, 6, 9, 7, 8, 7, 6, 4, 8, 7, 8, 11, 6, 7, 9, 4, 5, 8, 8, 7, 10, 10, 11, 9, 3, 5, 6, 6, 4, 12, 5, 9, 12, 11, 7, 6, 7, 9, 6, 10, 5, 6
Offset: 1
Keywords
Examples
a(19) = 1 since 19 = 17 + 2 with 17*18 + F(2) = 307 prime. a(30) = 1 since 30 = 8 + 22 with 8*9 + F(22) = 17783 prime.
Links
- Zhi-Wei Sun, Table of n, a(n) for n = 1..5000
Programs
-
Mathematica
a[n_]:=Sum[If[PrimeQ[x(x+1)+Fibonacci[n-x]],1,0],{x,1,n-1}] Table[a[n],{n,1,100}]
Comments