login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A249407
Numbers not in A249406.
4
2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70
OFFSET
1,1
COMMENTS
Primes are a subsequence, but semiprimes (cf. A001358) are not: first missing: A249406(1)=6=2*3, A249406(732)=2196323=1481*1483, A249406(1263)=6502499=2549*2551, A249406(1472)=8820899=2969*2971, A249406(1756)=12531599=3539*3541, ... ;
see A249411 for numbers of the form m*(m+1).
PROG
(Haskell)
import Data.List ((\\))
a249407 n = a249407_list !! (n-1)
a249407_list = f [2..] where
f ws@(u:v:_) = u : v : f (ws \\ [u, v, u * v])
CROSSREFS
Cf. A249406 (complement), A000040 (subsequence), A001358.
Sequence in context: A127161 A129657 A377313 * A360305 A103679 A376745
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 31 2014
STATUS
approved