![]() |
![]() |
#1 |
(loop (#_fork))
Feb 2006
Cambridge, England
33×239 Posts |
![]()
Define the tribonnaci numbers as f(n)=f(n-1)+f(n-2)+f(n-3), with f(0)=f(-1)=f(-2)=1
(I think this is the usual way to do it, with the first non-1 at index 1) I have wasted a few dozen CPU hours to determine that indices 1 2 4 5 8 10 11 17 21 24 30 61 93 148 322 447 1967 2986 give prime value, and indices 6197 8091 23391 25425 34683 35074 44169 45622 give pseudoprime values. Would someone with OEIS access be willing to submit the sequence? (My interest in the tribonnaci numbers is that T(3n) can be written as a ternary cubic with small coefficients evaluated at [T(n-1),T(n),T(n+1)], which feels as if there might be productive analogies with SNFS; but my algebraic geometry is not sufficient to contemplate the Jacobian of a ternary cubic) PS gnome terminal in ubuntu-12.04 appears to take time proportional to the length of the longest line in the terminal to scroll, and freezes all other terminal windows while scrolling. If that line contains, for example, the decimal expansion of T(45622), this can get vexing. Last fiddled with by fivemack on 2014-09-11 at 08:32 |
![]() |
![]() |
![]() |
#2 |
Romulan Interpreter
"name field"
Jun 2011
Thailand
35×41 Posts |
![]()
According with how the original spelt, it should be called tribonacci, not tribonnaci
![]() I think that your sequence can start in many different ways, and the one you selected is not the "most logical", considering that fibo starts with 0,1, it should be correct to start it either with 0,0,1 (or equivalent 0, 1, 2, if you shift it with one), or with 0,1,1. In all those cases the sequence is different, and has different properties. However, the way you start it has the merit that only generates odd numbers, which can be interesting from the primality point of view, we don't need to fuss about the even terms... |
![]() |
![]() |
![]() |
#3 | |
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
![]() Quote:
http://oeis.org/search?q=tribonacci&...lish&go=Search shows the most results. 0, 0, 1 1, 1, 1 0, 1, 0 1, 1, 0, are starts from index 0 within the first few pages of results. http://oeis.org/A157611 is a shifted version of this when the sequence starts at f(0)=f(1)=f(2) =1 Last fiddled with by science_man_88 on 2014-09-11 at 12:44 |
|
![]() |
![]() |
![]() |
#4 | |
Aug 2006
135338 Posts |
![]() Quote:
https://oeis.org/A157611 which has two more terms, 83355 and 116402. Edit: science_man beat me to it. Last fiddled with by CRGreathouse on 2014-09-11 at 13:27 |
|
![]() |
![]() |
![]() |
#5 |
(loop (#_fork))
Feb 2006
Cambridge, England
193516 Posts |
![]()
Thanks. The CPU hours really were wasted - I'd googled the prime values and found OEIS 056816, but hadn't realised that the reference to A157611 in the formula gave a table of indices.
|
![]() |
![]() |
![]() |
#6 | |
Nov 2003
11101001001002 Posts |
![]() Quote:
As I always say, a little time with google can save a lot of computing. Look up Perrin Sequences and papers by Dan Shanks and Perrin in Math.Comp. |
|
![]() |
![]() |
![]() |
#7 | |
Aug 2006
3·1,993 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What can you do with 2 prime numbers? | VicDiesel | Programming | 12 | 2017-04-20 21:16 |
Right Perfect Prime Numbers | Housemouse | Math | 34 | 2016-04-07 16:29 |
Prime Numbers Or Not | Arxenar | Miscellaneous Math | 38 | 2013-06-28 23:26 |
All odd numbers are prime | Citrix | Lounge | 5 | 2010-04-05 21:34 |
Prime numbers | Unregistered | Miscellaneous Math | 8 | 2008-11-09 07:45 |