login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A350661 a(1) = 1; a(n) = a(A007947(n) - 1) + n. 0
1, 3, 6, 5, 10, 16, 23, 9, 12, 22, 33, 22, 35, 49, 64, 17, 34, 28, 47, 32, 53, 75, 98, 34, 30, 56, 30, 63, 92, 122, 153, 33, 66, 100, 135, 46, 83, 121, 160, 52, 93, 135, 178, 97, 94, 140, 187, 58, 65, 62, 113, 82, 135, 64, 119, 91, 148, 206, 265, 152, 213, 275, 95, 65 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(1) = 1; a(n) = a(A075423(n)) + n.
EXAMPLE
a(3) = a(2) + 3 = a(1) + 5 = 6;
a(6) = a(5) + 6 = a(4) + 11 = a(1) + 15 = 16.
MATHEMATICA
rad[n_] := Times @@ First /@ FactorInteger[n]; a[1] = 1; a[n_] := a[n] = a[rad[n] - 1] + n; Array[a, 100] (* Amiram Eldar, Jan 10 2022 *)
PROG
(Python)
from sympy import prod, primefactors
from functools import lru_cache
rad = lambda n: prod(primefactors(n))
@lru_cache()
def a(n):
if n == 1: return 1
return a(rad(n)-1)+n
print([a(i) for i in range(1, 100)])
(PARI) rad(n) = factorback(factorint(n)[, 1]); \\ A007947
a(n) = if (n==1, 1, a(rad(n) - 1) + n); \\ Michel Marcus, Jan 10 2022
CROSSREFS
Sequence in context: A123089 A246978 A127780 * A118413 A295320 A093419
KEYWORD
nonn
AUTHOR
Gleb Ivanov, Jan 10 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 16:43 EDT 2024. Contains 372296 sequences. (Running on oeis4.)