OFFSET
1,2
COMMENTS
LINKS
PROG
(Sage) # Function that returns an array of the first n terms.
def A272800(n):
A, B, k = [0]*n, range(n), 1
while k<len(B):
for i in range(floor(len(B)/(k + 1))):
A[B.pop(k*(i + 1))] = k + 1
k += 1
return A
# Danny Rorabaugh, May 13 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Barrentine, May 06 2016
STATUS
approved