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

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A028390 Nearest integer to 3n/4 unless that is an integer, when 3n/2. 1
 0, 1, 2, 2, 6, 4, 5, 5, 12, 7, 8, 8, 18, 10, 11, 11, 24, 13, 14, 14, 30, 16, 17, 17, 36, 19, 20, 20, 42, 22, 23, 23, 48, 25, 26, 26, 54, 28, 29, 29, 60, 31, 32, 32, 66, 34, 35, 35, 72, 37, 38, 38, 78, 40, 41, 41, 84, 43, 44, 44, 90, 46, 47, 47, 96, 49, 50, 50, 102, 52, 53, 53 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 LINKS Index entries for linear recurrences with constant coefficients, signature (0,0,0,2,0,0,0,-1). FORMULA G.f.: [x(1+2x+2x^2+6x^3+2x^4+x^5+x^6]/[(1-x)^2(1+x)^2(1+x^2)^2]. MAPLE A028390 := proc(n) if 3*n mod 4 = 0 then 3*n/2 else round(3*n/4); fi; end; PROG (PARI) a(n)=if(Mod(3*n, 4) == 0, (3*n/2), round(3*n/4)); vector(100, n, a(n)) CROSSREFS Sequence in context: A059943 A264695 A112336 * A036500 A077080 A273012 Adjacent sequences: A028387 A028388 A028389 * A028391 A028392 A028393 KEYWORD nonn,easy AUTHOR EXTENSIONS More terms from Jason Earls, Jul 13 2001 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.

Last modified December 5 19:57 EST 2022. Contains 358588 sequences. (Running on oeis4.)