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!)
A335534 a(n) = tribonacci(n) modulo Fibonacci(n). 1
0, 0, 1, 2, 4, 7, 0, 3, 10, 26, 60, 130, 38, 173, 485, 175, 977, 273, 2789, 2065, 336, 15149, 22718, 39800, 5226, 54214, 2323, 251416, 418400, 93831, 977776, 1518664, 261912, 5208104, 2557037, 3549042, 21177270, 11203146, 36247269, 87596844, 44950918, 261069681 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
a(n) is congruent to tribonacci(n) modulo k if Fibonacci(n) is divisible by k, although the converse does not hold.
LINKS
EXAMPLE
For n=10, since tribonacci(10)=81 and Fibonacci(10)=55, a(10)=81 modulo 55 = 26.
MAPLE
a:= n-> (<<0|1|0>, <0|0|1>, <1|1|1>>^n)[1, 3] mod (<<0|1>, <1|1>>^n)[1, 2]:
seq(a(n), n=1..45); # Alois P. Heinz, Aug 19 2020
MATHEMATICA
m = 42; Mod[LinearRecurrence[{1, 1, 1}, {0, 1, 1}, m], Array[Fibonacci, m]] (* Amiram Eldar, Aug 19 2020 *)
PROG
(PARI) t(n) = ([0, 1, 0; 0, 0, 1; 1, 1, 1]^n)[1, 3]; \\ A000073
a(n) = t(n) % fibonacci(n); \\ Michel Marcus, Aug 19 2020
CROSSREFS
Sequence in context: A283509 A111768 A011177 * A213673 A118946 A097879
KEYWORD
nonn
AUTHOR
Richard Peterson, Jun 12 2020
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 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)