OFFSET
0,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..8192
FORMULA
EXAMPLE
This irregular table can be represented as a binary tree. Each child to the left is obtained by doubling the parent, and each child to the right is obtained by applying A283980 to the parent:
1
|
...................2...................
4 6
8......../ \........36 12......../ \........30
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
16 216 72 900 24 180 60 210
etc.
A329886 is the mirror image of the same tree.
MATHEMATICA
{1}~Join~Nest[Append[#1, If[EvenQ@ #2, 2 #1[[#2/2]], (Times @@ Map[#1^#2 & @@ # &, FactorInteger[#] /. {p_, e_} /; e > 0 :> {Prime[PrimePi@ p + 1], e}] - Boole[# == 1])*2^IntegerExponent[#, 2] &[#1[[(#2 - 1)/2]] ]]] & @@ {#, Length@ # + 1} &, {2}, 55] (* Michael De Vlieger, Dec 29 2019 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 24 2019
STATUS
approved