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!)
A336410 Complement of A336411. 2
1, 3, 5, 6, 8, 9, 11, 12, 13, 15, 16, 18, 19, 20, 21, 22, 24, 26, 27, 28, 29, 31, 33, 34, 35, 36, 37, 39, 41, 43, 44, 45, 47, 48, 50, 51, 52, 53, 55, 56, 58, 59, 60, 62, 63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 79, 81, 82, 83, 84, 85, 87, 88 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Previous name was: "Numbers k such that prime(k) - oc(k) = 2, where oc(k) is the greatest odd composite < prime(k)".
LINKS
FORMULA
a(n) = (A176852(n) - 5)/2. - Hugo Pfoertner, Jul 19 2023
MATHEMATICA
z = 5000; d = Select[Range[2, z], ! PrimeQ@# && OddQ@# &]; (* A014076 *)
f[n_] := Select[d, # < Prime[n] &];
t = Table[Prime[n] - Max[f[n]], {n, 5, 300}] (* A336409 *)
Flatten[Position[t, 2]] (* this sequence *)
Flatten[Position[t, 4]] (* A336411 *)
CROSSREFS
Sequence in context: A133561 A095117 A184675 * A121506 A114119 A186324
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 06 2020
EXTENSIONS
Offset corrected by Mohammed Yaseen, Jul 19 2023
New name from Hugo Pfoertner, Jul 20 2023
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 July 3 07:18 EDT 2024. Contains 373966 sequences. (Running on oeis4.)