OFFSET
0,3
COMMENTS
Like A005940, also this irregular table can be represented as a binary tree:
1
|
...................1...................
2 1
3......../ \........1 4......../ \........1
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
5 3 2 1 9 2 8 1
7 5 10 3 3 1 4 1 25 9 6 1 27 4 16 1
etc.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..8191
Antti Karttunen, Data supplement: n, a(n) computed for n = 0..65537
FORMULA
MATHEMATICA
Array[#2/GCD[#1, #2] & @@ {#, Apply[Times, Map[If[#1 <= 2, 1, NextPrime[#1, -1]]^#2 & @@ # &, FactorInteger[#]]]} &@ Function[p, Times @@ Flatten@ Table[Prime[Count[Flatten[#], 0] + 1]^#[[1, 1]] &@ Take[p, -i], {i, Length[p]}]]@ Partition[Split[Join[IntegerDigits[# - 1, 2], {2}]], 2] &[# + 1] &, 96] (* Michael De Vlieger, Aug 27 2020 *)
PROG
KEYWORD
AUTHOR
STATUS
approved