OFFSET
0,1
MATHEMATICA
christoffel[s_, M_] := Module[{n, x = 1, y = 0, ans = {0}}, Do[ If[y + 1 <= s*x, AppendTo[ans, 1]; y++, AppendTo[ans, 0]; x++], {n, 1, M}]; ans]; christoffel[Pi, 105] (* Robert G. Wilson v, Feb 02 2017, after Jean-François Alcover, Sep 19 2016, A274170 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 13 2009
STATUS
approved