OFFSET
0,2
COMMENTS
Records are: 1, 2, 3, 5, 6, 8, 10, 11, 12, 14, 16, 17, 19, 21, 22, 24, 25, 26, 27, 31, 35, 39, 44, ... and they occur at positions: 0, 1, 2, 3, 6, 10, 24, 49, 54, 62, 117, 236, 445, 484, 892, 893, 1022, 1784, 1911, 1912, 1913, 20600, 50822, ...
a(n) gives the length of each row of irregular table A263265.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..110880
FORMULA
PROG
(PARI)
allocatemem(123456789);
uplim = 2162160; \\ = A002182(41).
v155043 = vector(uplim);
v155043[1] = 1; v155043[2] = 1;
for(i=3, uplim, v155043[i] = 1 + v155043[i-numdiv(i)]);
uplim2 = 110880; \\ = A002182(30).
v262507 = vector(uplim2);
for(i=1, uplim, if(v155043[i] <= uplim2, v262507[v155043[i]]++));
A262507 = n -> if(!n, 1, v262507[n]);
for(n=0, uplim2, write("b262507.txt", n, " ", A262507(n)));
(Scheme)
;; Auxiliary function add implements sum_{i=lowlim..uplim} intfun(i)
(define (add intfun lowlim uplim) (let sumloop ((i lowlim) (res 0)) (cond ((> i uplim) res) (else (sumloop (1+ i) (+ res (intfun i)))))))
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 25 2015
STATUS
approved