login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A155086 Numbers n such that n^2 == -1 (mod 13). 6
5, 8, 18, 21, 31, 34, 44, 47, 57, 60, 70, 73, 83, 86, 96, 99, 109, 112, 122, 125, 135, 138, 148, 151, 161, 164, 174, 177, 187, 190, 200, 203, 213, 216, 226, 229, 239, 242, 252, 255, 265, 268, 278, 281, 291, 294, 304, 307, 317, 320, 330, 333 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Numbers n such that n = 5 or 8 mod 13. [Charles R Greathouse IV, Dec 28 2011]

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

Index entries for linear recurrences with constant coefficients, signature (1,1,-1).

FORMULA

a(n) = a(n-1)+a(n-2)-a(n-3).

G.f.: x*(5+3*x+5*x^2)/((1+x)*(x-1)^2) .

a(n) = 13*(n-1/2)/2 -7*(-1)^n/4.

a(n) = a(n-2)+13. - M. F. Hasler, Jun 16 2010

MATHEMATICA

LinearRecurrence[{1, 1, -1}, {5, 8, 18}, 50] (* Vincenzo Librandi, Feb 26 2012

Select[Range[1000], PowerMod[#, 2, 13] == 12 &] (* Vincenzo Librandi, Apr 24 2014 *)

PROG

(MAGMA) I:=[5, 8, 18]; [n le 3 select I[n] else Self(n-1)+Self(n-2)-Self(n-3): n in [1..40]]; // Vincenzo Librandi, Feb 26 2012

CROSSREFS

Cf. A002144, A047221 (m=5), A155095 (m=17), A156619 (m=25), A155096 (m=29), A155097 (m=37), A155098 (m=41), A154609 (bisection).

Sequence in context: A196934 A291752 A237276 * A219049 A245534 A302393

Adjacent sequences:  A155083 A155084 A155085 * A155087 A155088 A155089

KEYWORD

nonn,easy

AUTHOR

Vincenzo Librandi, Jan 20 2009

EXTENSIONS

Algebra simplified by R. J. Mathar, Aug 18 2009

Edited by N. J. A. Sloane, Jun 23 2010

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 1 02:14 EST 2021. Contains 341732 sequences. (Running on oeis4.)