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

 


A168465
Numbers that are congruent to 2 or 7 mod 11.
1
2, 7, 13, 18, 24, 29, 35, 40, 46, 51, 57, 62, 68, 73, 79, 84, 90, 95, 101, 106, 112, 117, 123, 128, 134, 139, 145, 150, 156, 161, 167, 172, 178, 183, 189, 194, 200, 205, 211, 216, 222, 227, 233, 238, 244, 249, 255, 260, 266, 271, 277, 282, 288, 293, 299, 304, 310
OFFSET
1,1
FORMULA
G.f.: x*(4*x^2 + 5*x + 2) / ((x+1)*(x-1)^2).
a(n) = (22*n - (-1)^n - 3)/4 - 3. [Bruno Berselli, Jan 05 2013, modified Jul 08 2015]
E.g.f.: 4 + ((22*x - 15)*exp(x) - exp(-x))/4. - David Lovler, Sep 04 2022
MATHEMATICA
Select[Range[310], MemberQ[{2, 7}, Mod[#, 11]]&] (* Ray Chandler, Jul 07 2015 *)
LinearRecurrence[{1, 1, -1}, {2, 7, 13}, 57] (* Ray Chandler, Jul 07 2015 *)
Rest[CoefficientList[Series[(4*x^2+5*x+2)*x/((x+1)*(x-1)^2), {x, 0, 57}], x]] (* Ray Chandler, Jul 07 2015 *)
PROG
(Magma) [(22*n-(-1)^n-3)/4-3: n in [1..60]]; // Bruno Berselli, Jul 08 2015
(PARI) a(n)=(22*n-(-1)^n-3)/4-3 \\ Charles R Greathouse IV, Jul 09 2015
CROSSREFS
Sequence in context: A356107 A001966 A209886 * A140562 A155547 A007821
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Nov 26 2009
EXTENSIONS
Definition corrected by Editors of the OEIS, Jul 07 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 22 18:42 EDT 2024. Contains 376138 sequences. (Running on oeis4.)