login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A074305 a(3m) = 2m, a(3m+1) = 4m+3, a(3m+2) = 4m+1. 3
0, 3, 1, 2, 7, 5, 4, 11, 9, 6, 15, 13, 8, 19, 17, 10, 23, 21, 12, 27, 25, 14, 31, 29, 16, 35, 33, 18, 39, 37, 20, 43, 41, 22, 47, 45, 24, 51, 49, 26, 55, 53, 28, 59, 57, 30, 63, 61, 32, 67, 65, 34, 71, 69, 36, 75, 73, 38, 79, 77, 40, 83, 81, 42, 87, 85, 44, 91, 89, 46, 95, 93 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
A permutation of the nonnegative integers.
LINKS
FORMULA
G.f.: x*(x^2-x+1)*(3x^2+4x+3)/(x^3-1)^2. - Ralf Stephan, Mar 19 2003
Sum_{n>=1} (-1)^n/a(n) = (sqrt(2)*arcsinh(1) - log(2))/2. - Amiram Eldar, Nov 28 2023
MATHEMATICA
a[n_] := a[n] = If[n <= 5, {0, 3, 1, 2, 7, 5}[[n+1]], 2 a[n-3] - a[n-6]];
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Sep 22 2023 *)
PROG
(PARI) a(m) = if(m%3==0, m/3*2, if(m%3==1, (m-1)/3*4+3, (m-2)/3*4+1)); \\ C. Ronaldo
CROSSREFS
Sequence in context: A308001 A191862 A266055 * A151855 A186366 A135338
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 23 2002
EXTENSIONS
More terms from Ralf Stephan, Mar 19 2003
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)