OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..5000
MATHEMATICA
a[1]=1; a[n_] := a[n] = (t= Union[Flatten[Table[a[i] a[j], {i, 1, n-1}, {j, i, n-1}]]]; Do[If[FreeQ[t, k], an = k; Break[]], {k, a[n-1]+1, Last[t]+1}]; an); Array[a, 60] (* Jean-François Alcover, May 06 2011 *)
Select[Range[110], OddQ[Total[FactorInteger[#]][[2]]] &] (* T. D. Noe, May 07 2011 *)
g = 110; t = Array[1 &, g];
Table[If[t[[j]] == 1, t[[j*i]] = 0, t[[i*j]] = 1], {j, 2, g/2}, {i, 2, g/j}]; Flatten[Position[t, 1]] (* Horst H. Manninger, Mar 15 2023 *)
PROG
(PARI) is(n)=bigomega(n)%2 || n==1 \\ Charles R Greathouse IV, Sep 16 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name corrected by Charles R Greathouse IV, Sep 16 2015
STATUS
approved