login
The Partition Ruler
3

%I #7 Jun 19 2019 10:32:21

%S 1,1,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,

%T 0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,

%U 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1

%N The Partition Ruler

%C a(k) = 1 if k = A000070(n) - 1 for some n >= 0 otherwise 0.

%C Is this the same as A134286? - _N. J. A. Sloane_, Feb 02 2009

%e .1,

%e .1,

%e .0, 1,

%e .0, 0, 1,

%e .0, 0, 0, 0, 1,

%t a70[n_] := a70[n] = PartitionsP[Range[0, n]] // Total;

%t a[k_] := AnyTrue[Range[0, k], k == a70[#]-1&] // Boole;

%t Table[a[k], {k, 0, 96}] (* _Jean-François Alcover_, Jun 19 2019 *)

%Y Cf. A000070, A000041.

%K nonn,tabf

%O 0,1

%A _Peter Luschny_, Jan 31 2009