Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A245508 Smallest double square (cf. A001105) greater than n-th prime. 4
2, 8, 8, 8, 18, 18, 18, 32, 32, 32, 32, 50, 50, 50, 50, 72, 72, 72, 72, 72, 98, 98, 98, 98, 98, 128, 128, 128, 128, 128, 128, 162, 162, 162, 162, 162, 162, 200, 200, 200, 200, 200, 200, 200, 200, 200, 242, 242, 242, 242, 242, 242, 242, 288, 288, 288, 288 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For n > 2: prime(n) < a(n) < 2*prime(n) and a(n) = A245499(A000040(n),2).
LINKS
MATHEMATICA
Module[{nn=60, ds}, ds=2 Range[0, Ceiling[Sqrt[Prime[nn]]]]^2; Join[ {2}, Table[ SelectFirst[ds, #>Prime[n]&], {n, 2, nn}]]] (* Harvey P. Dale, Jan 07 2020 *)
PROG
(Haskell)
import Data.List (genericIndex)
a245508 n = genericIndex a245508_list (n-1)
a245508_list = f a000040_list a001105_list where
f ps'@ (p:ps) xs'@(x:xs) = if p <= x then x : f ps xs' else f ps' xs
(PARI) a(n) = my(k=prime(n)+(n!=1)); while (! issquare(k/2), k+=2); k; \\ Michel Marcus, Jan 24 2022
CROSSREFS
Sequence in context: A284781 A289841 A143812 * A193639 A154481 A092280
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 25 2014
STATUS
approved

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 August 18 12:24 EDT 2024. Contains 375269 sequences. (Running on oeis4.)