A272887 Number of ways to write prime(n) as (4*x + 2)*y + 4*x + 1 where x and y are nonnegative integers.
0, 1, 2, 1, 2, 2, 3, 2, 2, 4, 1, 2, 4, 2, 2, 4, 4, 2, 2, 3, 2, 2, 4, 6, 3, 4, 2, 4, 4, 4, 1, 4, 4, 4, 6, 2, 2, 2, 4, 4, 6, 4, 2, 2, 6, 3, 2, 2, 4, 4, 6, 4, 3, 6, 4, 4, 8, 2, 2, 4, 2, 6, 4, 4, 2, 4, 2, 3, 4, 6, 4, 6, 2, 4, 4, 2, 8, 2, 4, 4, 8, 2, 4, 4, 4, 4, 9, 2, 8, 2, 6, 4, 2, 4, 4, 6, 8, 6, 2, 2, 2, 6, 4, 8, 4
Offset: 1
Keywords
Examples
a(3) = 2 because (4*0+2)*2+4*0+1 = 5 for (x=0, y=2) and (4*1+2)*0+4*1+1 = 5 for (x=1, y=0) where 5 is the 3rd prime.
Crossrefs
Programs
-
Mathematica
{0}~Join~Table[Count[Divisors[Prime[n + 1] + 1], ?OddQ], {n, 120}] (* _Michael De Vlieger, Jun 24 2016 *)
Extensions
More terms from Alois P. Heinz, May 17 2016
Comments