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!)
A056084 Numbers k such that k^8 == 1 (mod 9^3). 8
1, 728, 730, 1457, 1459, 2186, 2188, 2915, 2917, 3644, 3646, 4373, 4375, 5102, 5104, 5831, 5833, 6560, 6562, 7289, 7291, 8018, 8020, 8747, 8749, 9476, 9478, 10205, 10207, 10934, 10936, 11663, 11665, 12392, 12394, 13121, 13123, 13850, 13852, 14579, 14581, 15308 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
By definition, it is obvious that x is in the sequence iff x + 9^3 is. Since 1 and 728 (= -1 mod 9^3) are the only solutions in the interval [0,728], one has a(2n+1) = 729*n + 1 (n >= 0) and a(2n) = 729*n - 1, which can be combined in the given formulas for a(n). - Robert Israel, Philipp Emanuel Weidmann and M. F. Hasler, Apr 13 2015
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Colin Barker)
FORMULA
a(2n+1) = 729*n + 1 (n >= 0), a(2n) = 729*n - 1 (n >= 1), a(n) = 729*floor(n/2)-(-1)^n. - M. F. Hasler, Apr 13 2015
a(n) = (1458*n-729+(-1)^n*725)/4. - Conjectured by Philipp Emanuel Weidmann, explained by Robert Israel, Apr 13 2015
a(n) = a(n-1) + a(n-2) - a(n-3) for n>2. - Vincenzo Librandi, Apr 14 2015
G.f.: x*(x^2+727*x+1) / ((x-1)^2*(x+1)). - Colin Barker, Apr 14 2015
MAPLE
map(n -> (n+1, n+728), 729*[$0..100]); # Robert Israel, Apr 13 2015
MATHEMATICA
x=9; Select[ Range[ 20000 ], PowerMod[ #, x-1, x^3 ]==1& ]
PROG
(PARI) a(n)=n\2*729-(-1)^bittest(n, 0) \\ M. F. Hasler, Apr 13 2015
(Magma) I:=[1, 728, 730]; [n le 3 select I[n] else Self(n-1)+Self(n-2)-Self(n-3): n in [1..40]]; // Vincenzo Librandi, Apr 14 2015
(PARI) Vec(x*(x^2+727*x+1)/((x-1)^2*(x+1)) + O(x^100)) \\ Colin Barker, Apr 14 2015
CROSSREFS
Sequence in context: A178654 A094733 A321822 * A191345 A345744 A368590
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jun 08 2000
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 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)