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!)
A244435 a(n) is the smallest number m such that 2*k*m - 1 is composite for all k, 0 < k < n+1. 3
5, 13, 13, 62, 73, 73, 89, 118, 118, 118, 118, 118, 236, 926, 959, 959, 959, 959, 959, 959, 1063, 1474, 1474, 1474, 1667, 1667, 6118, 8249, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 9098, 35573, 35573, 35573, 57448, 57448, 57448, 57448, 57448, 57448, 57448 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(2)=a(3)=13, a(5)=a(6)=73, ... a(29)=a(30)=...=a(43)=9098, ... . A244436 gives numbers k such that a(k) is not in the set {a(k-1), a(k+1}.
LINKS
MAPLE
M:= 0: R:= NULL:
for m from 2 while M < 100 do
for i from 0 while not isprime(2*i*m-1) do od:
if i-1 > M then R:= R, m$(i-1-M); M:= i-1; fi;
od:
R; # Robert Israel, May 03 2021
PROG
(PARI) isok(n, m) = for(k=1, n, my(x=2*k*m-1); if ((x==1) || isprime(x), return(0))); return (1);
a(n) = my(m=1); while(!isok(n, m), m++); m; \\ Michel Marcus, May 04 2021
CROSSREFS
Sequence in context: A231806 A183782 A341751 * A134202 A309621 A191382
KEYWORD
nonn
AUTHOR
Farideh Firoozbakht, Jul 19 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 April 25 11:24 EDT 2024. Contains 371967 sequences. (Running on oeis4.)