OFFSET
1,1
COMMENTS
For n > 24 a(n) = a(n-24) + 4488211, the first 24 values are in the data.
When the number a(n) has 1 or 6 as the last digit, the number a(n)*6^k-1 is always divisible by 5 and always has another divisor in the set { 7, 13, 31, 37, 97 } for every k.
FORMULA
For n > 24, a(n) = a(n-24) + 4488211.
PROG
(PFGW & SCRIPT)
SCRIPT
DIM k, 1
DIM n
DIMS t
OPENFILEOUT myf, res.txt
LABEL loop1
SET k, k+1
SET n, 0
LABEL loop2
SET n, n+1
IF n>500 THEN GOTO a
IF (k*6^n-1)%7==0 THEN GOTO loop2
IF (k*6^n-1)%13==0 THEN GOTO loop2
IF (k*6^n-1)%31==0 THEN GOTO loop2
IF (k*6^n-1)%37==0 THEN GOTO loop2
IF (k*6^n-1)%43==0 THEN GOTO loop2
GOTO loop1
LABEL a
WRITE myf, k
PRINT k
GOTO loop1
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Jun 23 2014
STATUS
approved