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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A047390 Numbers that are congruent to {0, 3, 5} mod 7. 0
0, 3, 5, 7, 10, 12, 14, 17, 19, 21, 24, 26, 28, 31, 33, 35, 38, 40, 42, 45, 47, 49, 52, 54, 56, 59, 61, 63, 66, 68, 70, 73, 75, 77, 80, 82, 84, 87, 89, 91, 94, 96, 98, 101, 103, 105, 108, 110, 112, 115, 117, 119, 122, 124, 126, 129, 131, 133, 136, 138, 140, 143 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..62.

Index to sequences with linear recurrences with constant coefficients, signature (1,0,1,-1).

FORMULA

a(n) = 2*n+floor(n/3)+(n^2 mod 3), with offset 0..a(0)=0 [From Gary Detlefs, Mar 19 2010]

G.f.: x^2*(3+2*x+2*x^2)/((1-x)^2*(1+x+x^2)). a(n) = (1/3)*(7*n-6-A049347(n-1)) = A047391(n)-A079978(n-1)  - Bruno Berselli, Mar 29 2011

a(n) = n + ceiling(4*(n-1)/3) - 1. - Arkadiusz Wesolowski, Sep 18 2012

MAPLE

seq(2*n+floor(n/3)+(n^2 mod 3), n = 0..52); [From Gary Detlefs, Mar 19 2010]

MATHEMATICA

Select[Range[0, 150], MemberQ[{0, 3, 5}, Mod[#, 7]]&] (* From Harvey P. Dale, Dec 07 2011 *)

PROG

(MAGMA) [ n: n in [0..122] | n mod 7 in [0, 3, 5] ];  // Bruno Berselli, Mar 29 2011

CROSSREFS

A011655 [From Gary Detlefs, Mar 19 2010]

Sequence in context: A184586 A190511 A033035 * A184653 A206334 A184741

Adjacent sequences:  A047387 A047388 A047389 * A047391 A047392 A047393

KEYWORD

nonn

AUTHOR

N. J. A. Sloane.

STATUS

approved

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

Content is available under The OEIS End-User License Agreement .

Last modified May 22 08:33 EDT 2013. Contains 225513 sequences.