OFFSET
1,2
EXAMPLE
a(8)<>28, since 28=1 mod 27. But the residues of 29 modulo 3,5,9,15,17 and 27 are 2,4,2,14,12 and 2, none of which are earlier terms of the sequence, so a(8)=29.
CROSSREFS
KEYWORD
nonn
AUTHOR
John W. Layman, Jan 05 2005
STATUS
approved