OFFSET
1,1
COMMENTS
a(n) = A091212(n) for n <= 60.
a(n) = A175526(n) for n <= 53. - Reinhard Zumkeller, Jul 12 2011
In other words, composite numbers that are nonludic. - Antti Karttunen, May 11 2015
LINKS
Reinhard Zumkeller (first 1000 terms) & Antti Karttunen, Table of n, a(n) for n = 1..10000
MATHEMATICA
a3309[nmax_] := a3309[nmax] = Module[{t = Range[2, nmax], k, r = {1}}, While[Length[t] > 0, k = First[t]; AppendTo[r, k]; t = Drop[t, {1, -1, k}]]; r];
ludicQ[n_, nmax_] /; 1 <= n <= nmax := MemberQ[a3309[nmax], n];
terms = 1000;
f[nmax_] := f[nmax] = Select[Range[nmax], !ludicQ[#, nmax] && !PrimeQ[#]&] // PadRight[#, terms]&;
f[nmax = terms];
f[nmax = 2 nmax];
While[f[nmax] != f[nmax/2], nmax = 2 nmax];
PROG
(Haskell)
a192506 n = a192506_list !! (n-1)
a192506_list = filter ((== 0) . a010051) a192607_list
(Scheme, with Antti Karttunen's IntSeq-library)
;; Antti Karttunen, May 07 2015
CROSSREFS
Cf. A257689 (complement, either ludic or prime), A192503 (ludic and prime), A192504 (ludic and nonprime), A192505 (nonludic and prime).
a(n) differs from A091212(n) and A205783(n+1) for the first time at n=37, where a(37) = 55, while 55 is missing from both A091212 and A205783.
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 05 2011
STATUS
approved