login
Least number which may be expressed as the sum of a prime number and a nonzero square in exactly n different ways.
6

%I #13 Jun 26 2023 02:01:41

%S 3,6,27,38,83,167,248,227,488,398,887,668,902,908,1238,2012,1448,1748,

%T 1592,2537,2672,3902,4457,4703,3632,3713,5843,6233,7052,8333,5297,

%U 8888,9602,9092,6368,9908,13187,8153,12473,8777,15923,16463,14528,14852,20807

%N Least number which may be expressed as the sum of a prime number and a nonzero square in exactly n different ways.

%C A064272(a(n)) = n and A064272(m) <> n for m < a(n). - _Reinhard Zumkeller_, Mar 31 2013

%H Reinhard Zumkeller, <a href="/A064283/b064283.txt">Table of n, a(n) for n = 1..100</a>

%o (Haskell)

%o import Data.List (elemIndex)

%o import Data.Maybe (fromJust)

%o a064283 = (+ 2) . fromJust . (`elemIndex` a064272_list)

%o -- _Reinhard Zumkeller_, Mar 31 2013

%Y Cf. A000040, A000290, A064233, A064272.

%K nonn

%O 1,1

%A _Robert G. Wilson v_, Sep 24 2001

%E More terms from _Vladeta Jovovic_, Sep 25 2001

%E More terms from _Sean A. Irvine_, Jun 25 2023