login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Integers which have a positive but not monotone difference table of their divisors.
2

%I #14 Feb 27 2020 11:50:06

%S 51,55,57,69,87,93,111,119,123,129,141,159,177,183,201,207,213,219,

%T 237,249,253,267,275,291,303,309,319,321,327,333,339,369,377,381,393,

%U 403,411,417,447,453,471,489,501,519,537,543,573,579,591,597

%N Integers which have a positive but not monotone difference table of their divisors.

%C For an integer n>0 and not the unity we define DTD(n) to be the difference table of the divisors of n. We say that DTD(n) is positive if all entries in the table are positive and we call DTD(n) monotone if all rows and all columns of the table are nondecreasing (reading from left to right and from top to bottom).

%e 159 is in this sequence because the DTD of 159 has only positive entries but not all columns are nondecreasing:

%e [ 1 3 53 159]

%e [ 2 50 106]

%e [ 48 56]

%e [ 8]

%o (Sage)

%o def is_A273199(n):

%o D = divisors(n)

%o T = matrix(ZZ, len(D))

%o for (m, d) in enumerate(D):

%o T[0, m] = d

%o for k in range(m-1, -1, -1) :

%o T[m-k, k] = T[m-k-1, k+1] - T[m-k-1, k]

%o if T[m-k, k] <= 0: return False

%o non_decreasing = lambda L: all(x<=y for x, y in zip(L, L[1:]))

%o b = True

%o for k in range(0,len(D)-1):

%o b &= non_decreasing(T.row(k)[:len(D)-k])

%o b &= non_decreasing(T.column(k)[:len(D)-k])

%o if not b: return True

%o return False

%o print([n for n in range(1,600) if is_A273199(n)])

%Y Cf. A000040, A246655, A273102, A273130, A273200, A273201.

%K nonn

%O 1,1

%A _Peter Luschny_, May 17 2016