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!)
A241520 Numbers n such that n^2 == -1 (mod 89). 2
34, 55, 123, 144, 212, 233, 301, 322, 390, 411, 479, 500, 568, 589, 657, 678, 746, 767, 835, 856, 924, 945, 1013, 1034, 1102, 1123, 1191, 1212, 1280, 1301, 1369, 1390, 1458, 1479, 1547, 1568, 1636, 1657, 1725, 1746, 1814, 1835, 1903, 1924, 1992, 2013, 2081 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Numbers n such that n == 34 or 55 mod 89.
LINKS
FORMULA
G.f.: x*(34 + 21*x + 34*x^2)/((1 + x)*(1 - x)^2).
a(n) = a(n-1) + a(n-2) - a(n-3) for n>2.
a(n) = a(n-2) + 89 for all n>2.
a(n) = -34*(-1)^n + 89*floor(n/2).
MATHEMATICA
Select[Range[1500], PowerMod[#, 2, 89] == 88 &] (* or *) CoefficientList[Series[(34 + 21 x + 34 x^2)/((1 + x) (1 -x)^2), {x, 0, 100}], x]
PROG
(Magma) I:=[34, 55, 123]; [n le 3 select I[n] else Self(n-1)+Self(n-2)-Self(n-3): n in [1..50]] /* or */ [-34*(-1)^n+89*Floor(n/2): n in [1..50]];
CROSSREFS
Cf. similar sequences listed in A155107.
Sequence in context: A274380 A305061 A051969 * A067243 A171668 A259676
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 25 2014
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 19 12:06 EDT 2024. Contains 371792 sequences. (Running on oeis4.)