login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


n - (sum of prime factors of n^2+1) is prime.
1

%I #11 Mar 08 2018 16:40:40

%S 57,117,174,192,193,212,268,336,342,360,394,408,448,498,560,606,746,

%T 748,818,822,882,924,931,1052,1087,1196,1227,1254,1280,1380,1390,1404,

%U 1432,1477,1478,1514,1534,1590,1633,1696,1702,1818,1856,1874,1903,2057,2108

%N n - (sum of prime factors of n^2+1) is prime.

%C Prime factors counted without multiplicity. - _Harvey P. Dale_, Jul 04 2017

%H Robert Israel, <a href="/A216895/b216895.txt">Table of n, a(n) for n = 1..10000</a>

%e 57 is in the sequence because the prime divisors of 57^2 + 1 = 3250 are {2, 5, 13}, and 57 - (2+5+13) = 37 is prime.

%p with(numtheory): for n from 1 to 2500 do:x:=n^2+1:y:=factorset(x):n1:=nops(y): s:=sum('y[i] ', 'i'=1..n1):if n> s and type(n-s,prime)=true then printf(`%d, `, n): else fi:od:

%t spfpQ[n_]:=Module[{c=Total[FactorInteger[n^2+1][[All,1]]]},n>c && PrimeQ[ n-c]]; Select[Range[2500],spfpQ] (* _Harvey P. Dale_, Jul 04 2017 *)

%Y Cf. A008472.

%K nonn

%O 1,1

%A _Michel Lagneau_, Sep 19 2012

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 23 10:13 EDT 2024. Contains 376154 sequences. (Running on oeis4.)