OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
PROG
(PARI) {m=72; v=vector(m); z=2*m; u=vectorsmall(z); k=1; for(n=1, m, while(u[k], k++); v[n]=k; u[k]=1; j=n-1; p=k; while(j>0&&(p=p*v[j])<=z, u[p]=1; j--)); for(i=1, m, print1(v[i], ", "))} \\ Klaus Brockhaus, Oct 06 2008
(Other)
HP 49G calculator program from Gerald Hillier, Oct 24 2008
<< 0 OVER NDUPN
->LIST DUPDUP + 1 0
0 -> M V U K J P
<< 1 M
FOR N K
WHILE U OVER
GET
REPEAT 1 +
END 'K' STO V
N K PUT 'V' STO U K
1 PUT N 1 - 'J' STO
K 'P' STO
WHILE J 0 >
IF
THEN P V J
GET * DUP 'P' STO M
2 * <=
ELSE 0
END
REPEAT P 1
PUT J 1 - 'J' STO
END 'U' STO
NEXT V
>>
>>
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Gerald Hillier, Oct 04 2008
EXTENSIONS
Extended by Klaus Brockhaus, Oct 06 2008
STATUS
approved