A250476
Permutation of natural numbers: a(n) = A249826(A249823(n)).
Original entry on oeis.org
1, 2, 3, 4, 5, 6, 7, 8, 14, 9, 10, 21, 11, 12, 13, 15, 33, 16, 25, 17, 18, 32, 19, 20, 22, 39, 23, 24, 36, 26, 50, 43, 27, 28, 29, 30, 31, 34, 55, 56, 46, 92, 35, 37, 68, 38, 40, 59, 58, 41, 42, 70, 44, 86, 45, 47, 78, 48, 144, 49, 51, 77, 66, 52, 53, 54, 57, 91, 81, 80, 60, 88, 109, 87, 61, 62, 63, 64, 99, 65, 67, 226, 105, 69, 101, 71, 121, 72, 111, 73, 74
Offset: 1
A048673
Permutation of natural numbers: a(n) = (A003961(n)+1) / 2 [where A003961(n) shifts the prime factorization of n one step towards larger primes].
Original entry on oeis.org
1, 2, 3, 5, 4, 8, 6, 14, 13, 11, 7, 23, 9, 17, 18, 41, 10, 38, 12, 32, 28, 20, 15, 68, 25, 26, 63, 50, 16, 53, 19, 122, 33, 29, 39, 113, 21, 35, 43, 95, 22, 83, 24, 59, 88, 44, 27, 203, 61, 74, 48, 77, 30, 188, 46, 149, 58, 47, 31, 158, 34, 56, 138, 365, 60, 98, 36, 86, 73
Offset: 1
For n = 6, as 6 = 2 * 3 = prime(1) * prime(2), we have a(6) = ((prime(1+1) * prime(2+1))+1) / 2 = ((3 * 5)+1)/2 = 8.
For n = 12, as 12 = 2^2 * 3, we have a(12) = ((3^2 * 5) + 1)/2 = 23.
Cf.
A246351 (Numbers n such that a(n) < n.)
Cf.
A246352 (Numbers n such that a(n) >= n.)
Cf.
A246281 (Numbers n such that a(n) <= n.)
Cf.
A246282 (Numbers n such that a(n) > n.),
A252742 (their char. function)
Cf.
A246261 (Numbers n for which a(n) is odd.)
Cf.
A246263 (Numbers n for which a(n) is even.)
Cf.
A246342 (Iterates starting from n=12.)
Cf.
A246344 (Iterates starting from n=16.)
Cf.
A245447 (This permutation "squared", a(a(n)).)
Other permutations whose formulas refer to this sequence:
A122111,
A243062,
A243066,
A243500,
A243506,
A244154,
A244319,
A245605,
A245608,
A245610,
A245612,
A245708,
A246265,
A246267,
A246268,
A246363,
A249745,
A249824,
A249826, and also
A183209,
A254103 that are somewhat similar.
-
a048673 = (`div` 2) . (+ 1) . a045965
-- Reinhard Zumkeller, Jul 12 2012
-
f:= proc(n)
local F,q,t;
F:= ifactors(n)[2];
(1 + mul(nextprime(t[1])^t[2], t = F))/2
end proc:
seq(f(n),n=1..1000); # Robert Israel, Jan 15 2015
-
Table[(Times @@ Power[If[# == 1, 1, NextPrime@ #] & /@ First@ #, Last@ #] + 1)/2 &@ Transpose@ FactorInteger@ n, {n, 69}] (* Michael De Vlieger, Dec 18 2014, revised Mar 17 2016 *)
-
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ From A003961
A048673(n) = (A003961(n)+1)/2; \\ Antti Karttunen, Dec 20 2014
-
A048673(n) = if(1==n,n,if(n%2,A253888(A048673((n-1)/2)),(3*A048673(n/2))-1)); \\ (Not practical, but demonstrates the construction as a binary tree). - Antti Karttunen, Feb 10 2021
-
from sympy import factorint, nextprime, prod
def a(n):
f = factorint(n)
return 1 if n==1 else (1 + prod(nextprime(i)**f[i] for i in f))//2 # Indranil Ghosh, May 09 2017
-
(define (A048673 n) (/ (+ 1 (A003961 n)) 2)) ;; Antti Karttunen, Dec 20 2014
New name and crossrefs to derived sequences added by
Antti Karttunen, Dec 20 2014
A249822
Square array of permutations: A(row,col) = A078898(A246278(row,col)), read by antidiagonals A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), ...
Original entry on oeis.org
1, 2, 1, 3, 2, 1, 4, 3, 2, 1, 5, 5, 3, 2, 1, 6, 4, 9, 3, 2, 1, 7, 8, 4, 14, 3, 2, 1, 8, 6, 12, 4, 28, 3, 2, 1, 9, 14, 5, 21, 4, 36, 3, 2, 1, 10, 13, 42, 5, 33, 4, 57, 3, 2, 1, 11, 11, 17, 92, 5, 45, 4, 67, 3, 2, 1, 12, 7, 19, 33, 305, 5, 63, 4, 93, 3, 2, 1, 13, 23, 6, 25, 39, 455, 5, 80, 4, 139, 3, 2, 1, 14, 9, 59, 6, 43, 61, 944, 5, 116, 4, 154, 3, 2, 1, 15, 17, 7, 144, 6, 52, 70, 1238, 5, 148, 4, 210, 3, 2, 1
Offset: 1
The top left corner of the array:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ...
1, 2, 3, 5, 4, 8, 6, 14, 13, 11, 7, 23, 9, 17, 18, ...
1, 2, 3, 9, 4, 12, 5, 42, 17, 19, 6, 59, 7, 22, 26, ...
1, 2, 3, 14, 4, 21, 5, 92, 33, 25, 6, 144, 7, 32, 39, ...
1, 2, 3, 28, 4, 33, 5, 305, 39, 43, 6, 360, 7, 48, 50, ...
1, 2, 3, 36, 4, 45, 5, 455, 61, 52, 6, 597, 7, 63, 68, ...
1, 2, 3, 57, 4, 63, 5, 944, 70, 76, 6, 1053, 7, 95, 84, ...
1, 2, 3, 67, 4, 80, 5, 1238, 96, 99, 6, 1502, 7, 106, 121, ...
...
Inverse permutations can be found from table
A249821.
Row k+1 is a right-to-left composition of the first k rows of
A251722.
Original entry on oeis.org
1, 2, 3, 9, 4, 12, 5, 42, 17, 19, 6, 59, 7, 22, 26, 209, 8, 82, 10, 92, 31, 29, 11, 292, 41, 32, 115, 109, 13, 129, 14, 1042, 40, 39, 48, 409, 15, 49, 45, 459, 16, 152, 18, 142, 180, 52, 20, 1459, 57, 202, 54, 159, 21, 572, 63, 542, 68, 62, 23, 642, 24, 69, 213
Offset: 1
a(4) = 9 because of the following. 2n = 2*4 = 8 = 2^3. We replace the prime factor 2 of 8 with the next prime 3 to get 3^3, then replace 3 with 5 to get 5^3 = 125. The smallest prime factor of 125 is 5. 125 is the 9th term of A084967: 5, 25, 35, 55, 65, 85, 95, 115, 125, ..., thus a(4) = 9.
Cf.
A003961,
A048673,
A078898,
A084967,
A243071,
A246278,
A249734,
A249746,
A249826,
A250475,
A275716.
-
t = PositionIndex[FactorInteger[#][[1, 1]] & /@ Range[10^4]]; f[n_] := Times @@ Power[If[# == 1, 1, NextPrime@ #] & /@ First@ #, Last@ #] &@ Transpose@ FactorInteger@ n; Flatten@ Table[Position[Lookup[t, FactorInteger[#][[1, 1]] ], #] &[f@ f[2 n]], {n, 120}] (* Michael De Vlieger, Jul 25 2016, Version 10 *)
-
(define (A249824 n) (A078898 (A003961 (A003961 (* 2 n)))))
A249825
Permutation of natural numbers: a(n) = A246277(A084968(n)).
Original entry on oeis.org
1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 4, 41, 43, 47, 53, 59, 61, 6, 67, 71, 73, 10, 79, 83, 89, 97, 101, 103, 14, 9, 107, 109, 22, 113, 127, 15, 131, 137, 139, 26, 149, 151, 25, 157, 163, 167, 21, 173, 179, 181, 191, 34, 33, 193, 38, 35, 197, 199, 211, 223, 227, 229, 55, 233, 39, 239, 46, 241, 251, 257, 263, 269, 271, 58, 49
Offset: 1
Showing 1-5 of 5 results.
Comments