OFFSET
1,1
COMMENTS
For n > 144 a(n) = a(n-144) + 412729590, the first 144 values are in the table.
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..144
FORMULA
For n > 144, a(n) = a(n-144) + 412729590.
PROG
(PFGW & SCRIPT)
SCRIPT
DIM n
DIM k, 1
OPENFILEOUT myf, a(n).txt
LABEL loop1
SET k, k+2
SET n, 0
LABEL a
SET n, n+1
IF n>500 THEN GOTO b
IF (k*(2^n)-1)%3==0 THEN GOTO a
IF (k*(2^n)-1)%5==0 THEN GOTO a
IF (k*(2^n)-1)%7==0 THEN GOTO a
IF (k*(2^n)-1)%13==0 THEN GOTO a
IF (k*(2^n)-1)%19==0 THEN GOTO a
IF (k*(2^n)-1)%73==0 THEN GOTO a
IF (k*(2^n)-1)%109==0 THEN GOTO a
GOTO loop1
LABEL b
WRITE myf, k
PRINT k
GOTO loop1
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Jun 19 2014
STATUS
approved