OFFSET
1,3
COMMENTS
Terms are primes or 0.
EXAMPLE
a(5) is representing 11. 11*(3-1)+1=23=2 mod 3, 11*(5-1)+1=45=0 mod 5, hence a(5)=5
PROG
(PARI) forstep (m=3, 1000, 2, forstep (n=3, 1000, 2, if (((n-1)*m+1)%n==0, print1(n", "); break); if (n==999, print1("0, "))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Jan 10 2003
STATUS
approved