login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A076338 a(n) = 512*n + 1. 4
1, 513, 1025, 1537, 2049, 2561, 3073, 3585, 4097, 4609, 5121, 5633, 6145, 6657, 7169, 7681, 8193, 8705, 9217, 9729, 10241, 10753, 11265, 11777, 12289, 12801, 13313, 13825, 14337, 14849, 15361, 15873, 16385, 16897, 17409, 17921, 18433 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

First prime is a(15) = 7681, see A076339.

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..10000

Tanya Khovanova, Recursive Sequences

Index entries for linear recurrences with constant coefficients, signature (2,-1).

FORMULA

G.f.: (1+511*x)/(1-x)^2. - Vincenzo Librandi, Feb 23 2012

a(n) = 2*a(n-1)-a(n-2). - Vincenzo Librandi, Feb 23 2012

MATHEMATICA

LinearRecurrence[{2, -1}, {1, 513}, 50] (* Vincenzo Librandi, Feb 23 2012 *)

PROG

(MAGMA) I:=[1, 513]; [n le 2 select I[n] else 2*Self(n-1)-Self(n-2): n in [1..50]]; // Vincenzo Librandi, Feb 23 2012

(PARI) for(n=0, 50, print1(512*n+1", ")); \\ Vincenzo Librandi, Feb 23 2012

(Haskell)

a076338 n = (+ 1) . (* 512)

a076338_list = [1, 513..]  -- Reinhard Zumkeller, Mar 08 2012

CROSSREFS

Cf. A076339.

Sequence in context: A060947 A182108 A066697 * A237620 A111344 A230188

Adjacent sequences:  A076335 A076336 A076337 * A076339 A076340 A076341

KEYWORD

nonn,easy

AUTHOR

Reinhard Zumkeller, Oct 07 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified March 25 15:14 EDT 2017. Contains 284082 sequences.