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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A251925 Prime powers p^k (k>=2) of the form (n^2+1)/2. 1

%I #25 Nov 13 2023 09:20:02

%S 25,841,28561,32959081,1119638521,1985636569351347658201,

%T 3051519929713402294221039791281,

%U 4689566069222821420312720463003656425961,183840368926047361112315395593676258316051401,17020879736268069268391497343746883355223007561030622302744641179601

%N Prime powers p^k (k>=2) of the form (n^2+1)/2.

%C The corresponding n are a subsequence of A001333; see example.

%H Paolo Xausa, <a href="/A251925/b251925.txt">Table of n, a(n) for n = 1..19</a>

%H Joerg Arndt, <a href="http://jjj.de/arctan/">Arctan relations for Pi</a> (the author's starting point for this sequence).

%e The first few terms correspond to

%e 7^2 + 1 = 2 * 5^2 = 2 * 25,

%e 41^2 + 1 = 2 * 29^2 = 2 * 841,

%e 239^2 + 1 = 2 * 13^4 = 2 * 28561,

%e 8119^2 + 1 = 2 * 5741^2 = 2 * 32959081,

%e 47321^2 + 1 = 2 * 33461^2 = 2 * 1119638521,

%e 63018038201^2+1 = 2 * 44560482149^2 = 2 * 1985636569351347658201.

%t With[{r=Range[100]},Select[((ChebyshevT[r,I]/I^r)^2+1)/2,!PrimeQ[#]&&PrimePowerQ[#]&]] (* _Paolo Xausa_, Nov 13 2023, after _Joerg Arndt_ *)

%o (PARI) forstep(n=1,10^9,2, t=(n^2+1)/2; if( !isprime(t) && isprimepower(t), print1(t,", ")));

%o (PARI) /* much more efficient: */

%o {b(n) = polchebyshev(n, 1, I) / I^n}

%o for(n=1,10^3,t=(b(n)^2+1)/2;if(!isprime(t)&&isprimepower(t),print1(t,", ")));

%Y Cf. A027861 (primes of the form (n^2+1)/2), A001333, A008844 (primes and composites with k=2).

%K nonn

%O 1,1

%A _Joerg Arndt_, Dec 11 2014

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)