OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10153
FORMULA
G.f.: (1-x)^(-2)-(1-x)^(-1)*(1+x+x^2-Sum_{k>=0} k*x^((k^2-5*k+8)/2)). - Robert Israel, Jan 02 2017
MAPLE
seq($k^2+1..k^2+k-1, k=0..20); # Robert Israel, Jan 02 2017
MATHEMATICA
Select[Range[200], # < Floor[Sqrt[#]] Ceiling[Sqrt[#]] &] (* T. D. Noe, Apr 20 2011 *)
PROG
(Python)
from itertools import count, islice
def A189151_gen(): # generator of terms
return (n for k in count(0) for n in range(k**2+1, k*(k+1)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Daniel Forgues, Apr 17 2011
STATUS
approved