OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=21 because Diophantine 2x+3y=(2+3)^3 has 21 positive solutions {x, y}:
{1, 41}, {4, 39}, {7, 37}, {10, 35}, {13, 33}, {16, 31}, {19, 29}, {22, 27}, {25, 25}, {28, 23}, {31, 21}, {34, 19}, {37, 17}, {40, 15}, {43, 13}, {46, 11}, {49, 9}, {52, 7}, {55, 5}, {58, 3}, {61, 1};
a(2)=34 because Diophantine 3x+5y=(3+5)^3 has 34 positive solutions {x, y}:
{4, 100}, {9, 97}, {14, 94}, {19, 91}, {24, 88}, {29, 85}, {34, 82}, {39, 79}, {44, 76}, {49, 73}, {54, 70}, {59, 67}, {64, 64}, {69, 61}, {74, 58}, {79, 55}, {84, 52}, {89, 49}, {94, 46}, {99, 43}, {104, 40}, {109, 37}, {114, 34}, {119, 31}, {124, 28}, {129, 25}, {134, 22}, {139, 19}, {144, 16}, {149, 13}, {154, 10}, {159, 7}, {164, 4}, {169, 1}.
MATHEMATICA
Table[With[{p=Prime[n], q=Prime[n+1]}, Floor[(p+q)^2/p]+Floor[(p+q)^2/q]+1], {n, 1, 100}]
Floor[Total[#]^2/#[[1]]]+Floor[Total[#]^2/#[[2]]]+1&/@Partition[ Prime[ Range[ 50]], 2, 1] (* Harvey P. Dale, May 27 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 25 2008
STATUS
approved