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!)
A097367 Fibonacci regression array: For n>=2 and 1<=k<=n-1, T(n,k) is the last term before the first nonpositive term in the sequence n, k, n-k, 2k-n, 2n-3k, 5k-3n, ... 3
1, 2, 1, 3, 2, 2, 4, 3, 1, 3, 5, 4, 3, 2, 4, 6, 5, 4, 2, 3, 5, 7, 6, 5, 4, 1, 4, 6, 8, 7, 6, 5, 3, 3, 5, 7, 9, 8, 7, 6, 5, 2, 4, 6, 8, 10, 9, 8, 7, 6, 4, 2, 5, 7, 9, 11, 10, 9, 8, 7, 6, 3, 4, 6, 8, 10, 12, 11, 10, 9, 8, 7, 5, 1, 5, 7, 9, 11, 13, 12, 11, 10, 9, 8, 7, 4, 3, 6, 8, 10, 12, 14, 13, 12, 11 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

G. C. Greubel, Table of n, a(n) for n = 1..1000

FORMULA

For n > k >= 1, define d(1)=n, d(2)=k, d(j) = d(j-2) - d(j-1) for j >= 3. Then d(j) = F(j-2)*n - F(j-1)*k for odd j>=1 and d(j) = F(j-1)*k - F(j-2)*n for even j>=2, where F(h)=A000045(h) = h-th Fibonacci number. The sequence d is the aforementioned sequence n, k, n-k, 2k-n, 2n-3k, 5k-3n, ...

T(m*n,m*k) = m*T(n,k). - Robert Israel, Jan 20 2018

EXAMPLE

Rows 2,3,4,5,6:

1

2 1

3 2 2

4 3 1 3

5 4 3 2 4

T(8,5)=1, last term before 0 in 8,5,3,2,1,1,0,1,-1,...

T(8,6)=4, last term before -2 in 8,6,2,4,-2,6,-8,14,...

MATHEMATICA

f[n_] := Fibonacci[n]; d[n_, k_, 1] := n; d[n_, k_, 2] := k;

d[n_, k_, j_] := ((-1)^j) (k*f[j - 1] - n*f[j - 2]);

s[n_, k_] := Select[Range[100], d[n, k, # + 1] <= 0 &, 1];

t = Table[d[n, k, s[n, k]], {n, 2, 20}, {k, 1, n - 1}];  (* A097367 array *)

Flatten[t]  (* A097367 sequence *)

Table[Min[Flatten[Table[d[n, k, s[n, k]], {k, 1, n - 1}]]], {n, 2, 100}]  (* A097368 *)

(* Clark Kimberling, Oct 14 2016 *)

CROSSREFS

Cf. A000045, A097368, A097369.

Sequence in context: A069013 A029281 A126792 * A130211 A317207 A102364

Adjacent sequences:  A097364 A097365 A097366 * A097368 A097369 A097370

KEYWORD

nonn,tabl

AUTHOR

Clark Kimberling, Aug 09 2004

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 4 13:32 EST 2021. Contains 341791 sequences. (Running on oeis4.)