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!)
A326583 Integers k >= 0 such that 2*k + 1 is prime or square. 1
0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 14, 15, 18, 20, 21, 23, 24, 26, 29, 30, 33, 35, 36, 39, 40, 41, 44, 48, 50, 51, 53, 54, 56, 60, 63, 65, 68, 69, 74, 75, 78, 81, 83, 84, 86, 89, 90, 95, 96, 98, 99, 105, 111, 112, 113, 114, 116, 119, 120 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
MAPLE
s := n -> if irem(n, 2) = 1 and (isprime(n) or issqr(n)) then (n-1)/2 else NULL fi:
seq(s(n), n=0..241);
MATHEMATICA
Select[Range[0, 120], Or[IntegerQ@ Sqrt@ #, PrimeQ@ #] &[2 # + 1] &] (* Michael De Vlieger, Jul 15 2019 *)
CROSSREFS
Sequence in context: A164119 A308017 A184107 * A033102 A295796 A030789
KEYWORD
nonn
AUTHOR
Peter Luschny, Jul 15 2019
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 April 23 23:26 EDT 2024. Contains 371917 sequences. (Running on oeis4.)