A286321 Least possible strictly positive product of the two initial terms of a Fibonacci-like sequence containing n.
1, 1, 1, 2, 1, 4, 2, 1, 3, 4, 2, 6, 1, 3, 6, 4, 4, 2, 6, 5, 1, 8, 3, 9, 10, 4, 12, 4, 2, 15, 6, 9, 5, 1, 10, 8, 3, 6, 9, 20, 10, 4, 7, 12, 4, 12, 2, 8, 15, 6, 14, 16, 5, 18, 1, 16, 20, 8, 18, 3, 6, 19, 9, 24, 20, 10, 28, 4, 7, 30, 12, 32, 4, 12, 35, 2, 8, 14
Offset: 1
Examples
See illustration of the first terms in Links section.
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, C program for A286321
- Rémy Sigrist, Scatterplot of the first 100000 terms
- Rémy Sigrist, Illustration of the first terms
Programs
-
Mathematica
Table[Module[{a = 0, b = 1, s = {}}, While[a <= n, AppendTo[s, Flatten@ NestWhileList[{#2, #1 + #2} & @@ # &, {a, b}, Last@ # < n &]]; If[a + b >= n, a++; b = 1, b++]]; First@ DeleteCases[#, 0] &@ Union@ Map[Times @@ #[[1 ;; 2]] &, Select[s, MemberQ[#, n] &]]], {n, 78}] (* Michael De Vlieger, May 10 2017 *)
Comments