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!)
A120635 Replace each prime power in the prime-factorization of n with the next higher prime-power. 3
1, 3, 4, 5, 7, 12, 8, 9, 11, 21, 13, 20, 16, 24, 28, 17, 19, 33, 23, 35, 32, 39, 25, 36, 27, 48, 29, 40, 31, 84, 32, 37, 52, 57, 56, 55, 41, 69, 64, 63, 43, 96, 47, 65, 77, 75, 49, 68, 53, 81, 76, 80, 59, 87, 91, 72, 92, 93, 61, 140, 64, 96, 88, 67, 112, 156, 71, 95, 100, 168, 73 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
12 = 2^2 *3^1. 5 is the prime power closest to 2^2 and larger than 2^2. 4 is the prime power closest to 3 and larger than 3. So a(12) = 5*4 = 20.
MAPLE
N:= 100: # for a(1)..a(N)
PP:= select(t -> nops(numtheory:-factorset(t))=1, [$2..N]):
g:= proc(n) local i;
if member(n, PP, i) then PP[i+1] fi
end proc:
f:= proc(n) local F;
F:= ifactors(n)[2];
convert(map(t -> g(t[1]^t[2]), F), `*`)
end proc:
map(f, [$1..N]); # Robert Israel, Mar 02 2022
MATHEMATICA
nextPrimePower[n_] := Module[{k}, For[k = n+1, True, k++, If[PrimeNu[k] == 1, Return[k]]]];
a[n_] := If[n == 1, 1, Times @@ (nextPrimePower[Power @@ #]& /@ FactorInteger[n])];
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Feb 07 2023 *)
PROG
(PARI) { a(n) = local(f, r, k, d); f=factorint(n); r=1; for(i=1, matsize(f)[1], k=f[i, 1]^f[i, 2]+1; while(!isprime(k) && (!ispower(k, , &d)||!isprime(d)), k++); r*=k); r } \\ Max Alekseyev, Feb 01 2007
CROSSREFS
Cf. A120636.
Sequence in context: A353969 A285224 A322991 * A300841 A023713 A032890
KEYWORD
nonn,mult
AUTHOR
Leroy Quet, Jun 22 2006
EXTENSIONS
More terms from Max Alekseyev, Feb 01 2007
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 April 23 10:29 EDT 2024. Contains 371905 sequences. (Running on oeis4.)