[go: up one dir, main page]

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!)
Search: a260738 -id:a260738
Displaying 1-10 of 14 results found. page 1 2
     Sort: relevance | references | number | modified | created      Format: long | short | data
A269379 a(1) = 1; for n > 1, a(n) = A255127(A260738(n)+1, A260739(n)). +20
18
1, 3, 5, 9, 7, 15, 11, 21, 19, 27, 13, 33, 17, 39, 35, 45, 23, 51, 31, 57, 49, 63, 25, 69, 29, 75, 65, 81, 37, 87, 55, 93, 79, 99, 59, 105, 41, 111, 95, 117, 43, 123, 47, 129, 109, 135, 53, 141, 85, 147, 125, 153, 61, 159, 73, 165, 139, 171, 103, 177, 67, 183, 155, 189, 113, 195, 71, 201, 169, 207, 77, 213, 101, 219, 185, 225, 83 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) = the number located immediately below n in A255127 (square array generated by Ludic sieve) in the same column where n itself is, or in other words, the number removed in the next filtering stage at the same step as when n was removed in the A260738(n)-th stage.
Permutation of odd numbers.
LINKS
FORMULA
a(1) = 1; for n > 1, a(n) = A255127(A260738(n)+1, A260739(n)).
Other identities. For all n >= 1:
A269380(a(n)) = n.
PROG
(Scheme) (define (A269379 n) (if (= 1 n) n (A255127bi (+ (A260738 n) 1) (A260739 n)))) ;; Code for A255127bi given in A255127.
CROSSREFS
Cf. A269171, A269356, A269358, A269382, A269385, A269387 (sequences that use this function).
Cf. A269380 (left inverse).
Cf. also A250469, A269369.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 01 2016
STATUS
approved
A269380 a(1) = 1, after which, for odd numbers: a(n) = A260739(n)-th number k for which A260738(k) = A260738(n)-1, and for even numbers: a(n) = a(n/2). +20
14
1, 1, 2, 1, 3, 2, 5, 1, 4, 3, 7, 2, 11, 5, 6, 1, 13, 4, 9, 3, 8, 7, 17, 2, 23, 11, 10, 5, 25, 6, 19, 1, 12, 13, 15, 4, 29, 9, 14, 3, 37, 8, 41, 7, 16, 17, 43, 2, 21, 23, 18, 11, 47, 10, 31, 5, 20, 25, 35, 6, 53, 19, 22, 1, 27, 12, 61, 13, 24, 15, 67, 4, 55, 29, 26, 9, 71, 14, 33, 3, 28, 37, 77, 8, 49, 41, 30, 7, 83, 16, 89, 17, 32, 43, 39, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
For odd numbers n > 1, a(n) tells which term is on the immediately preceding row of A255127 (square array generated by Ludic sieve), in the same column where n itself is.
LINKS
FORMULA
a(1) = 1; after which, for even numbers a(n) = a(n/2), and for odd numbers a(n) = A255127(A260738(n)-1, A260739(n)).
Other identities. For all n >= 1:
a(A269379(n)) = n.
PROG
(definec (A269380 n) (cond ((= 1 n) n) ((even? n) (A269380 (/ n 2))) (else (A255127bi (- (A260738 n) 1) (A260739 n))))) ;; Code for A255127bi given in A255127.
CROSSREFS
Cf. A269172, A269355, A269357, A269382, A269386, A269388 (sequences that use this function).
Cf. also A268674, A269370.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 01 2016
STATUS
approved
A260742 Permutation of natural numbers: a(1) = 1, for n > 1: a(n) = A255551(A260738(n), a(A260739(n))). +20
11
1, 2, 3, 4, 7, 6, 9, 8, 5, 14, 13, 12, 15, 18, 11, 16, 21, 10, 19, 28, 17, 26, 25, 24, 31, 30, 35, 36, 33, 22, 27, 32, 29, 42, 39, 20, 37, 38, 47, 56, 43, 34, 49, 52, 41, 50, 51, 48, 61, 62, 23, 60, 63, 70, 45, 72, 77, 66, 57, 44, 67, 54, 71, 64, 123, 58, 69, 84, 65, 78, 73, 40, 55, 74, 83, 76, 75, 94, 103, 112, 101, 86, 79, 68, 91, 98, 59, 104, 87, 82, 93, 100, 89, 102 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This is a more recursed variant of A260436.
LINKS
FORMULA
a(1) = 1, for n > 1: a(n) = A255551(A260738(n), a(A260739(n))).
Other identities. For all n >= 1:
a(A003309(n+2)) = A000959(n+1). [Maps odd Ludic numbers to Lucky numbers.]
a(n) = a(2n)/2. [The even bisection halved gives the sequence back.]
PROG
(Scheme, with memoization macro definec)
(definec (A260742 n) (if (<= n 1) n (A255551bi (A260738 n) (A260742 (A260739 n))))) ;; Code for A255551bi given in A255551.
CROSSREFS
Inverse: A260741.
Similar permutations: A260436, A250245, A250246.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 30 2015
STATUS
approved
A260436 Permutation mapping from Ludic sieve to Lucky sieve: a(1) = 1, for n > 1: a(n) = A255551(A260738(n), A260739(n)). +20
7
1, 2, 3, 4, 7, 6, 9, 8, 5, 10, 13, 12, 15, 14, 11, 16, 21, 18, 19, 20, 17, 22, 25, 24, 31, 26, 23, 28, 33, 30, 27, 32, 29, 34, 39, 36, 37, 38, 35, 40, 43, 42, 49, 44, 41, 46, 51, 48, 61, 50, 47, 52, 63, 54, 45, 56, 53, 58, 57, 60, 67, 62, 59, 64, 81, 66, 69, 68, 65, 70, 73, 72, 55, 74, 71, 76, 75, 78, 103, 80, 77, 82, 79, 84, 91, 86, 83, 88 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) tells which number in array A255551 (constructed from Lucky sieve) is at the same position where n is in array A255127 (constructed from Ludic sieve). This permutation fixes all even numbers because both arrays have A005843 as their topmost row.
LINKS
FORMULA
Other identities. For all n >= 1:
a(A003309(n+2)) = A000959(n+1). [Maps odd Ludic numbers to Lucky numbers.]
a(2n) = 2n.
As a composition of related permutations:
a(n) = A255551(A255128(n)).
a(n) = A255553(A255408(n)).
PROG
(Scheme) (define (A260436 n) (if (<= n 1) n (A255551bi (A260738 n) (A260739 n)))) ;; Code for A255551bi given in A255551.
CROSSREFS
Inverse: A260435.
Similar permutations: A255408, A255128, A255551, A255553, A249817, A249818, A260742 (a more recursed variant).
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 30 2015
STATUS
approved
A269383 Permutation of natural numbers: a(1) = 1, a(n) = A000079(A260738(n+1)-1) * ((2 * a(A260739(n+1))) - 1). +20
3
1, 2, 3, 4, 5, 8, 7, 6, 9, 16, 15, 32, 13, 10, 11, 64, 17, 12, 31, 14, 29, 128, 63, 256, 25, 18, 19, 512, 21, 24, 127, 30, 33, 20, 23, 1024, 61, 26, 27, 2048, 57, 4096, 255, 22, 125, 8192, 511, 28, 49, 34, 35, 16384, 37, 48, 1023, 62, 41, 40, 47, 32768, 253, 58, 59, 36, 65, 65536, 39, 126, 45, 131072, 2047, 96, 121, 50, 51, 262144, 53, 60 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(1) = 1, a(n) = A000079(A260738(n+1)-1) * ((2 * a(A260739(n+1))) - 1).
Other identities. For all n >= 0:
A000035(a(n)) = A000035(n). [This permutation preserves the parity of n.]
PROG
(Scheme, with memoization-macro definec)
(definec (A269383 n) (cond ((<= n 1) n) (else (* (A000079 (- (A260738 (+ 1 n)) 1)) (+ -1 (* 2 (A269383 (A260739 (+ 1 n)))))))))
CROSSREFS
Inverse: A269384.
Cf. also A249813, A269373.
Differs from both A246683 and A249813 for the first time at n=18, which here a(18)=12, instead of 128.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 01 2016
STATUS
approved
A255127 Ludic array: square array A(row,col), where row n lists the numbers removed at stage n in the sieve which produces Ludic numbers. Array is read by antidiagonals A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), ... +10
48
2, 4, 3, 6, 9, 5, 8, 15, 19, 7, 10, 21, 35, 31, 11, 12, 27, 49, 59, 55, 13, 14, 33, 65, 85, 103, 73, 17, 16, 39, 79, 113, 151, 133, 101, 23, 18, 45, 95, 137, 203, 197, 187, 145, 25, 20, 51, 109, 163, 251, 263, 281, 271, 167, 29, 22, 57, 125, 191, 299, 325, 367, 403, 311, 205, 37, 24, 63, 139, 217, 343, 385, 461, 523, 457, 371, 253, 41 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
The starting offset of the sequence giving the terms of square array is 2. However, we can tacitly assume that a(1) = 1 when the sequence is used as a permutation of natural numbers. However, term 1 itself is out of the array.
LINKS
EXAMPLE
The top left corner of the array:
2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26
3, 9, 15, 21, 27, 33, 39, 45, 51, 57, 63, 69, 75
5, 19, 35, 49, 65, 79, 95, 109, 125, 139, 155, 169, 185
7, 31, 59, 85, 113, 137, 163, 191, 217, 241, 269, 295, 323
11, 55, 103, 151, 203, 251, 299, 343, 391, 443, 491, 539, 587
13, 73, 133, 197, 263, 325, 385, 449, 511, 571, 641, 701, 761
17, 101, 187, 281, 367, 461, 547, 629, 721, 809, 901, 989, 1079
23, 145, 271, 403, 523, 655, 781, 911, 1037, 1157, 1289, 1417, 1543
25, 167, 311, 457, 599, 745, 883, 1033, 1181, 1321, 1469, 1615, 1753
29, 205, 371, 551, 719, 895, 1073, 1243, 1421, 1591, 1771, 1945, 2117
...
MATHEMATICA
rows = 12; cols = 12; t = Range[2, 3000]; r = {1}; n = 1; While[n <= rows, k = First[t]; AppendTo[r, k]; t0 = t; t = Drop[t, {1, -1, k}]; ro[n++] = Complement[t0, t][[1 ;; cols]]]; A = Array[ro, rows]; Table[ A[[n - k + 1, k]], {n, 1, rows}, {k, n, 1, -1}] // Flatten (* Jean-François Alcover, Mar 14 2016, after Ray Chandler *)
PROG
(Scheme)
(define (A255127 n) (if (<= n 1) n (A255127bi (A002260 (- n 1)) (A004736 (- n 1)))))
(define (A255127bi row col) ((rowfun_n_for_A255127 row) col))
;; definec-macro memoizes its results:
(definec (rowfun_n_for_A255127 n) (if (= 1 n) (lambda (n) (+ n n)) (let* ((rowfun_for_remaining (rowfun_n_for_remaining_numbers (- n 1))) (eka (rowfun_for_remaining 0))) (COMPOSE rowfun_for_remaining (lambda (n) (* eka (- n 1)))))))
(definec (rowfun_n_for_remaining_numbers n) (if (= 1 n) (lambda (n) (+ n n 3)) (let* ((rowfun_for_prevrow (rowfun_n_for_remaining_numbers (- n 1))) (off (rowfun_for_prevrow 0))) (COMPOSE rowfun_for_prevrow (lambda (n) (+ 1 n (floor->exact (/ n (- off 1)))))))))
CROSSREFS
Transpose: A255129.
Inverse: A255128. (When considered as a permutation of natural numbers with a(1) = 1).
Cf. A260738 (index of the row where n occurs), A260739 (of the column).
Main diagonal: A255410.
Column 1: A003309 (without the initial 1). Column 2: A254100.
Row 1: A005843, Row 2: A016945, Row 3: A255413, Row 4: A255414, Row 5: A255415, Row 6: A255416, Row 7: A255417, Row 8: A255418, Row 9: A255419.
A192607 gives all the numbers right of the leftmost column, and A192506 gives the composites among them.
Cf. A272565, A271419, A271420 and permutations A269379, A269380, A269384.
Cf. also related or derived arrays A260717, A257257, A257258 (first differences of rows), A276610 (of columns), A276580.
Analogous arrays for other sieves: A083221, A255551, A255543.
KEYWORD
nonn,tabl,look
AUTHOR
Antti Karttunen, Feb 22 2015
STATUS
approved
A272565 Ludic factor of n. +10
18
1, 2, 3, 2, 5, 2, 7, 2, 3, 2, 11, 2, 13, 2, 3, 2, 17, 2, 5, 2, 3, 2, 23, 2, 25, 2, 3, 2, 29, 2, 7, 2, 3, 2, 5, 2, 37, 2, 3, 2, 41, 2, 43, 2, 3, 2, 47, 2, 5, 2, 3, 2, 53, 2, 11, 2, 3, 2, 7, 2, 61, 2, 3, 2, 5, 2, 67, 2, 3, 2, 71, 2, 13, 2, 3, 2, 77, 2, 5, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This sequence is somewhat analogous to the smallest prime factor of n (A020639). However, each natural number has only one ludic factor, because once it is crossed off in the k-th step of the sieve process, it is not a member of the terms considered in the (k+1)-th step.
On the other hand, by iteratively invoking A302032 it is possible to factor n to its constituent "Ludic factors", with each natural number having a unique such decomposition, analogous to prime factorization of n. See comments and examples given in A302032. - Antti Karttunen, Apr 08 2018
LINKS
OEIS Wiki, Ludic numbers.
FORMULA
From Antti Karttunen, Sep 11 2016: (Start)
a(n) = A003309(1+A260738(n)).
For all n >= 1, a(A276347(n)) = A020639(A276347(n)).
(End).
PROG
(Scheme) (define (A272565 n) (A003309 (+ 1 (A260738 n)))) ;; Antti Karttunen, Sep 11 2016
CROSSREFS
Cf. A276347, A276447, A276448 (ludic factor is equal, less than or greater than the smallest prime factor).
Cf. A260739 (ordinal transform), A302036 (numbers with all Ludic factors equal).
Cf. A264940 (analogous version for lucky numbers).
KEYWORD
nonn
AUTHOR
Max Barrentine, May 09 2016
STATUS
approved
A260739 Column index to A255127: a(1) = 1; for n > 1, a(n) = the position at the stage where n is removed in the sieve which produces Ludic numbers. +10
17
1, 1, 1, 2, 1, 3, 1, 4, 2, 5, 1, 6, 1, 7, 3, 8, 1, 9, 2, 10, 4, 11, 1, 12, 1, 13, 5, 14, 1, 15, 2, 16, 6, 17, 3, 18, 1, 19, 7, 20, 1, 21, 1, 22, 8, 23, 1, 24, 4, 25, 9, 26, 1, 27, 2, 28, 10, 29, 3, 30, 1, 31, 11, 32, 5, 33, 1, 34, 12, 35, 1, 36, 2, 37, 13, 38, 1, 39, 6, 40, 14, 41, 1, 42, 4, 43, 15, 44, 1, 45, 1, 46, 16, 47, 7, 48, 1, 49, 17, 50, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Ordinal transform of A272565 (Ludic factor), and also of A260738. - Antti Karttunen, Apr 03 2018
LINKS
FORMULA
Other identities. For all n >= 2:
a(A003309(n)) = 1. [In Ludic sieve each Ludic number (after 1) is the first among the numbers removed at stage k.]
a(A254100(n)) = 2.
A255127(A260738(n), a(n)) = n.
For n > 1, A001511(a(n)) = A302035(n). - Antti Karttunen, Apr 03 2018
PROG
(Scheme)
(define (A260739 n) (cond ((= 1 n) 1) ((even? n) (/ n 2)) (else (let searchrow ((row 2)) (let searchcol ((col 1)) (cond ((>= (A255127bi row col) n) (if (= (A255127bi row col) n) col (searchrow (+ 1 row)))) (else (searchcol (+ 1 col))))))))) ;; Code for A255127bi given in A255127.
CROSSREFS
Column index to array A255127.
Cf. A260738 (corresponding row index).
Cf. A302035, A302036 (positions of terms that are powers of 2).
Cf. A078898, A246277, A260429, A260439 for column indices to other arrays similar to A255127.
Differs from A246277 (and also after the initial term from A078898) for the first time at n=19.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 30 2015
EXTENSIONS
Term a(1) changed from 0 to 1 to match with the definition of A078898 and the interpretation as an ordinal transform - Antti Karttunen, Apr 03 2018
STATUS
approved
A260438 Row index to A255545: If n is k-th Lucky number then a(n) = k, otherwise a(n) = number of the stage where n is removed in Lucky sieve. +10
12
1, 1, 2, 1, 2, 1, 3, 1, 4, 1, 2, 1, 5, 1, 6, 1, 2, 1, 3, 1, 7, 1, 2, 1, 8, 1, 4, 1, 2, 1, 9, 1, 10, 1, 2, 1, 11, 1, 3, 1, 2, 1, 12, 1, 5, 1, 2, 1, 13, 1, 14, 1, 2, 1, 6, 1, 4, 1, 2, 1, 3, 1, 15, 1, 2, 1, 16, 1, 17, 1, 2, 1, 18, 1, 19, 1, 2, 1, 20, 1, 3, 1, 2, 1, 7, 1, 21, 1, 2, 1, 4, 1, 22, 1, 2, 1, 5, 1, 23, 1, 2, 1, 3, 1, 24, 1, 2, 1, 8, 1, 25, 1, 2, 1, 26, 1, 6, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
For n >= 2 this works also as a row index to array A255551 (which does not contain 1) and when restricted to unlucky numbers, A050505, also as a row index to array A255543.
LINKS
FORMULA
Other identities. For all n >= 1:
a(A000959(n)) = n.
a(A219178(n)) = n.
a(2n) = 1. [All even numbers are removed at the stage one of the sieve.]
a(A016969(n)) = 2.
a(A258016(n)) = 3.
a(A260440(n)) = 4.
A255545(a(n), A260429(n)) = n.
For all n >= 2, A255551(a(n), A260439(n)) = n.
PROG
(Scheme)
(define (A260438 n) (cond ((not (zero? (A145649 n))) (A109497 n)) ((even? n) 1) (else (let searchrow ((row 2)) (let searchcol ((col 1)) (cond ((>= (A255543bi row col) n) (if (= (A255543bi row col) n) row (searchrow (+ 1 row)))) (else (searchcol (+ 1 col))))))))) ;; Code for A255543bi given in A255543.
CROSSREFS
Cf. also A260429, A260439 (corresponding column indices).
Cf. A055396, A260738 for row indices to other arrays similar to A255545.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 29 2015
STATUS
approved
A302032 A032742 analog for a nonstandard factorization process based on the Ludic sieve (A255127); Discard a single instance of the Ludic factor A272565(n) from n. +10
11
1, 1, 1, 2, 1, 3, 1, 4, 3, 5, 1, 6, 1, 7, 5, 8, 1, 9, 5, 10, 9, 11, 1, 12, 1, 13, 7, 14, 1, 15, 7, 16, 15, 17, 7, 18, 1, 19, 11, 20, 1, 21, 1, 22, 21, 23, 1, 24, 19, 25, 19, 26, 1, 27, 11, 28, 27, 29, 11, 30, 1, 31, 13, 32, 11, 33, 1, 34, 33, 35, 1, 36, 13, 37, 17, 38, 1, 39, 35, 40, 39, 41, 1, 42, 31, 43, 35, 44, 1, 45, 1, 46, 45, 47, 13, 48, 1, 49, 23, 50 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Like [A020639(n), A032742(n)] or [A020639(n), A302042(n)], also ordered pair [A272565(n), a(n)] is unique for each n. Iterating n, a(n), a(a(n)), a(a(a(n))), ..., until 1 is reached, and taking the Ludic factor (A272565) of each term gives a multiset of Ludic numbers (A003309) in ascending order, unique for each natural number n >= 1. Permutation pair A302025/A302026 maps between this "Ludic factorization" and the ordinary prime factorization of n. See also comments in A302034.
LINKS
FORMULA
For n > 1, a(n) = A269379^(r)(A260739(n)), where r = A260738(n)-1 and A269379^(r)(n) stands for applying r times the map x -> A269379(x), starting from x = n.
a(n) = A302025(A032742(A302026(n))).
EXAMPLE
For n = 100, A272565(100) [its Ludic factor] is 2. Because A260738(100) = 1, a(100) is just A260739(100) = 100/2 = 50.
For n = 50, A272565(50) [its Ludic factor] is 2. Because A260738(50) = 1, a(50) = A260739(50) = 50/2 = 25.
For n = 25, A272565(25) [its Ludic factor] is 25 = A003309(1+9). Because A260738(25) = 9, a(25) = A269379^8(A260739(25)) = A269379^8(1) = 1.
Collecting the Ludic factors given by A272565 we get a multiset of factors: [2, 2, 25] = [A003309(1+1), A003309(1+1), A003309(1+9)]. Note that prime(1)*prime(1)*prime(9) = 2*2*23 = 92 = A302026(100).
If we start from n = 100, iterating the map n -> A302034(n) [instead of n -> A302032(n)] and apply A272565 to each term obtained we get just a single instance of each Ludic factor: [2, 25]. Then by applying A302035 to the same terms we get the corresponding exponents (multiplicities) of those factors: [2, 1].
PROG
(PARI)
\\ Assuming A269379 and its inverse A269380 have been precomputed, then the following is reasonably fast:
A302032(n) = if(1==n, n, my(k=0); while((n%2), n = A269380(n); k++); n = n/2; while(k>0, n = A269379(n); k--); (n));
CROSSREFS
Cf. the following analogs A302031 (omega), A302037 (bigomega).
Cf. also A032742, A302042.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 31 2018
STATUS
approved
page 1 2

Search completed in 0.011 seconds

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 August 29 11:12 EDT 2024. Contains 375512 sequences. (Running on oeis4.)