OFFSET
0,3
COMMENTS
Compare also to the scatter plot of A364294.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..12288
MATHEMATICA
f[n_] := Reverse@ Map[Ceiling[(Length@ # - 1)/2] &, DeleteCases[Split@ Join[Riffle[IntegerDigits[n, 2], 0], {0}], {k__} /; k == 1]]; {1}~Join~Table[-n + Function[t, Prime[t] Product[Prime[m]^(f[n][[m]]), {m, t}] ][DigitCount[n, 2, 1]], {n, 120}] (* Michael De Vlieger, Jul 25 2023 *)
PROG
(Python)
from sympy import nextprime
def A364258(n):
c, p, k = 1, 1, n
while k:
c *= (p:=nextprime(p))**(s:=(~k&k-1).bit_length())
k >>= s+1
return c*p-n # Chai Wah Wu, Jul 25 2023
CROSSREFS
KEYWORD
sign,look
AUTHOR
Antti Karttunen, Jul 25 2023
STATUS
approved