OFFSET
1,1
COMMENTS
EXAMPLE
14 is in the sequence because the elements of the 14th row of A237591 are 8, 3, 1, 2, and they are not in nonincreasing order (note that the last two element are in increasing order).
PROG
(Python)
import math
from sympy import sqrt
def T(n, k): return int(math.ceil((n + 1)/k - (k + 1)/2)) - int(math.ceil((n + 1)/(k + 1) - (k + 2)/2))
def isok(n):
l = [T(n, k) for k in range(1, int(math.floor((sqrt(8*n + 1) - 1)/2)) + 1)]
return any(l[i + 1] > l[i] for i in range(len(l) - 1))
print([n for n in range(1, 151) if isok(n)]) # Indranil Ghosh, Apr 20 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Apr 18 2017
STATUS
approved