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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A079354 a(1)=1; a(n)=a(n-1)-1 if n is already in the sequence, a(n)=a(n-1)+3 otherwise. 3
1, 4, 7, 6, 9, 8, 7, 6, 5, 8, 11, 14, 17, 16, 19, 18, 17, 16, 15, 18, 21, 24, 27, 26, 29, 28, 27, 26, 25, 28, 31, 34, 37, 36, 39, 38, 37, 36, 35, 38, 41, 44, 47, 46, 49, 48, 47, 46, 45, 48, 51, 54, 57, 56, 59, 58, 57, 56, 55, 58, 61, 64, 67, 66, 69, 68, 67, 66, 65, 68, 71, 74, 77 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Starting with a(1)=0 and same definition, a(n)=n+(-1)^n (cf. A004442)

LINKS

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

FORMULA

a(n)-n is periodic with period (0, 2, 4, 2, 4, 2, 0, -2, -4, -2) of length 10.

a(10t+i) = 10t+c_i, 1<=i<=10, c_i=(1, 4, 7, 6, 9, 8, 7, 6, 5, 8). a(n) = n iff n == 1 or 7 (mod 10).

CROSSREFS

Sequence in context: A081845 A140877 A069286 * A122460 A063845 A188730

Adjacent sequences:  A079351 A079352 A079353 * A079355 A079356 A079357

KEYWORD

nonn

AUTHOR

Benoit Cloitre and N. J. A. Sloane, Feb 14 2003

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 June 18 18:04 EDT 2013. Contains 226355 sequences.