cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A145298 Smallest k such that k^2+1 is divisible by A002144(n)^5.

Original entry on oeis.org

1068, 143044, 390112, 7745569, 6423465, 46464143, 23048345, 144762466, 404034898, 2153335831, 331407850, 1108900220, 2581164875, 760839155, 10734466938, 6595297216, 773302059, 61063137802, 31915893786, 112699451831
Offset: 1

Views

Author

Klaus Brockhaus, Oct 14 2008

Keywords

Examples

			a(4) = 7745569 since A002144(4) = 29, 7745569^2+1 = 59993839133762 = 2*29^5*97*15077 and for no k < 7745569 does 29^5 divide k^2+1.
		

Crossrefs

Cf. A002144 (primes of form 4n+1), A002313 (-1 is a square mod p), A059321, A145296, A145297, A145299.

Programs

  • PARI
    {e=5; forprime(p=2, 200, if(p%4==1, q=p^e; m=q; while(!ispower(m-1,2,&n), m=m+q); print1(n, ",")))}
    
  • Python
    from itertools import islice
    from sympy import nextprime, sqrt_mod_iter
    def A145298_gen(): # generator of terms
        p = 1
        while (p:=nextprime(p)):
            if p&3==1:
                yield min(sqrt_mod_iter(-1,p**5))
    A145298_list = list(islice(A145298_gen(),20)) # Chai Wah Wu, May 04 2024