OFFSET
1,1
COMMENTS
Primorial numbers (A002110) greater than 2 are in this sequence.
EXAMPLE
30 is in this sequence because the difference table of the divisors of 30 is:
[1, 2, 3, 5, 6, 10, 15, 30]
[1, 1, 2, 1, 4, 5, 15]
[0, 1, -1, 3, 1, 10]
[1, -2, 4, -2, 9]
[-3, 6, -6, 11]
[9, -12, 17]
[-21, 29]
[50]
PROG
(Sage)
def nsf(z):
D = divisors(z)
T = matrix(ZZ, len(D))
for m, d in enumerate(D):
T[0, m] = d
for k in range(m-1, -1, -1) :
T[m-k, k] = T[m-k-1, k+1] - T[m-k-1, k]
if T[m-k, k] <= 0: return True
return False
print([n for n in range(1, 100) if nsf(n)])
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, May 16 2016
STATUS
approved