OFFSET
0,1
EXAMPLE
a(2) = 31 because 31 = 2*1 + 4 + 25 = 4 + 3*9.
MATHEMATICA
lst = {}; Do[p = 2; While[True, If[PrimeQ[p] && Length@Select[PowersRepresentations[p, 4, 2], ! MemberQ[#, 0] &] == n, AppendTo[lst, p]; Break[]]; p++], {n, 0, 49}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Nov 02 2012
STATUS
approved