OFFSET
0,1
COMMENTS
30*n+7 -/+ 2 is a multiple of 3 or 5. For n > 0, this number is not prime. So with the exception of a(0), no a(n) is a member of a twin prime pair.
Except for 7, these numbers cannot be written as sum or difference of two primes. [Arkadiusz Wesolowski, Jan 08 2012]
LINKS
FORMULA
a(n) = 2*a(n-1)-a(n-2). [Vincenzo Librandi, Sep 05 2010]
G.f.: (7+23*x)/(1-x)^2. [R. J. Mathar, Sep 05 2010]
MATHEMATICA
Range[7, 7000, 30] (* Vladimir Joseph Stephan Orlovsky, Jun 18 2011 *)
LinearRecurrence[{2, -1}, {7, 37}, 50] (* Harvey P. Dale, Jul 31 2024 *)
PROG
(PARI) A128471(n)={ return(30*n+7) ; }
for(n=0, 30, print1(A128471(n)", ")) ; /* R. J. Mathar, Sep 05 2010 */
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, May 06 2007
EXTENSIONS
Comment clarified by Robert Israel, offset set to zero by R. J. Mathar, Sep 05 2010
STATUS
approved