cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-10 of 14 results. Next

A269379 a(1) = 1; for n > 1, a(n) = A255127(A260738(n)+1, A260739(n)).

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Mar 01 2016

Keywords

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.

Crossrefs

Cf. A269171, A269356, A269358, A269382, A269385, A269387 (sequences that use this function).
Cf. A269380 (left inverse).
Cf. also A250469, A269369.

Programs

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.

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).

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Mar 01 2016

Keywords

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.

Crossrefs

Cf. A269172, A269355, A269357, A269382, A269386, A269388 (sequences that use this function).
Cf. also A268674, A269370.

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.

A260742 Permutation of natural numbers: a(1) = 1, for n > 1: a(n) = A255551(A260738(n), a(A260739(n))).

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Jul 30 2015

Keywords

Comments

This is a more recursed variant of A260436.

Crossrefs

Inverse: A260741.
Similar permutations: A260436, A250245, A250246.

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.]

A302032 Discard the least ludic factor of n: a(n) = A255127(A260738(c) + r - 1, A260739(c)), where r = A260738(n), c = A260739(n) are the row and the column index of n in the table A255127; a(n) = 1 if c = 1.

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Mar 31 2018

Keywords

Comments

Original definition: 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.
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.
The definition of "discard the least ludic factor" is based on the table A255127 of the ludic sieve, where row r lists the (r+1)-th ludic number k = A003309(r+1), determined at the r-th step of the sieve, followed by the numbers crossed out at this step, namely, every k-th of the numbers remaining so far after k. If the number n is in row r = A260738(n), column c = A260739(n) of that table, then its least ludic factor is A272565(n) = A003309(r+1), the 1st entry of the r-th row. To discard that factor means to consider the number which is r-1 rows below the number c in that table, whence a(n) = A255127(A260738(c)+r-1, A260739(c)) - unless n is a ludic number, in which case a(n) = 1. - M. F. Hasler, Nov 06 2024

Examples

			Frem _M. F. Hasler_, Nov 06 2024: (Start)
For ludic numbers 1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, ..., a(n) = 1.
For n = 4, an even number, we have r = A260738(4) = 1: It is listed in row 1 of the table A255127, which lists all numbers that were crossed out at the first step: namely, the ludic number k = 2 and every other larger number. Also, in this row 1, the number 4 is in column c = A260739(4) = 2. Therefore, we apply r-1 = 0 times the map A269379 to c = 2, whence a(4) = 2.
The number n = 6 is also even and therefore listed in row r = 1, now in column c = 3, whence a(6) = 3. Similarly, a(8) = 4 and a(2k) = k for all k >= 1.
The number n = 9 was crossed out at the 2nd step (so r = A260738(9) = 2), when k = 3 was added to the ludic numbers and every 3rd remaining number crossed out; 9 was the first of these (after k = 3) so it is in column c = A260739(9) = 2. Now we have to apply r-1 = 1 times the map A269379 to c. That map yields the number which is located just below the argument (here c = 2) in the table A255127. Since 2 is a ludic number, in the first column, we get the next larger ludic number, 3, whence a(9) = 3.
The number 15 was the (c = 3)rd number to be crossed out at the (r = 2)nd step. Hence a(15) = A269379^{r-1} (c) = A269379(3) = 5 (again, the next larger ludic number).
The number 19 was the (c = 2)nd number to be crossed out at the (r = 3)rd step (when k = 5, its least ludic factor, was added to the list of ludic numbers). Hence a(19) = A269379^2(2) = A269379(3) = 5 again (skipping twice to the next larger ludic number).
(End)
To illustrate how this sequence allows one to compute the complete "ludic factorization" of a number, we consider n = 100.
For n = 100, its Ludic factor A272565(100) is 2, and we have seen that a(n) = 100/2 = 50.
For n = 50, its Ludic factor A272565(50) is 2 again, and again a(50) = 50/2 = 25.
Since n = 25 = A003309(1+9) is a ludic number, it equals its Ludic factor A272565(25) = 25. Because it appeared at the A260738(25) = 9th step, we apply A269379 eight times to the column index A260739(25) = 1, a fixed point, so a(25) = A269379^8(1) = 1.
Collecting the Ludic factors given by A272565 we get the multiset of factors: [2, 2, 25] = [A003309(1+1), A003309(1+1), A003309(1+9)]. By definition, A302026(100) = prime(1)*prime(1)*prime(9) = 2*2*23 = 92, the product of the corresponding primes.
If we start from n = 100, iterating the map n -> A302034(n) [instead of A302032] 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].
		

Crossrefs

Cf. the following analogs A302031 (omega), A302037 (bigomega).
Cf. also A032742, A302042.

Programs

  • 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))

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))).
From M. F. Hasler, Nov 06 2024: (Start)
a(n) = 1 if n is a ludic number, i.e., in A003309. Otherwise:
a(n) = A255127(A260738(c) + r - 1, A260739(c)), with r = A260738(n), c = A260739(n).
In particular, a(2n) = n for all n. (End)

A260436 Permutation mapping from Ludic sieve to Lucky sieve: a(1) = 1, for n > 1: a(n) = A255551(A260738(n), A260739(n)).

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Jul 30 2015

Keywords

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.

Crossrefs

Inverse: A260435.
Similar permutations: A255408, A255128, A255551, A255553, A249817, A249818, A260742 (a more recursed variant).

Programs

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)).

A269383 Permutation of natural numbers: a(1) = 1, a(n) = A000079(A260738(n+1)-1) * ((2 * a(A260739(n+1))) - 1).

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Mar 01 2016

Keywords

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.

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.]

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), ...

Original entry on oeis.org

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
Offset: 2

Views

Author

Antti Karttunen, Feb 22 2015

Keywords

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.
The choice of offset = 2 for the terms starting in rows >= 1 is motivated by the desire to have a permutation of the integers n -> a(n) with a(n) = A(A002260(n-1), A004736(n-1)) for n > 1 and a(1) := 1. However, since this sequence is declared as a "table", offset = 2 would mean that the first *row* (not element) has index 2. I think the sequence should have offset = 1 and the permutation of the integers would be n -> a(n-1) with a(0) := 1 (if a(1) = A(1,1) = 2). Or, the sequence could have offset 0, with an additional row 0 of length 1 with the only element a(0) = A(0,1) = 1, the permutation still being n -> a(n-1) if a(n=0, 1, 2, ...) = (1, 2, 4, ...). This would be in line with considering 1 as the first ludic number, and A(n, 1) = A003309(n+1) for n >= 0. - M. F. Hasler, Nov 12 2024

Examples

			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
...
		

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.
Cf. A376237 (ludic factorials), A377469 (ludic analog of A005867).

Programs

  • 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 *)
  • Python
    a255127 = lambda n: A255127(A002260(k-1), A004736(k-1))
    def A255127(n, k):
        A = A255127; R = A.rows
        while len(R) <= n or len(R[n]) < min(k, A.P[n]): A255127_extend(2*n)
        return R[n][(k-1) % A.P[n]] + (k-1)//A.P[n] * A.S[n]
    A=A255127; A.rows=[[1],[2],[3]]; A.P=[1]*3; A.S=[0,2,6]; A.limit=30
    def A255127_extend(rMax=9, A=A255127):
        A.limit *= 2; L = [x+5-x%2 for x in range(0, A.limit, 3)]
        for r in range(3, rMax):
            if len(A.P) == r:
                A.P += [ A.P[-1] * (A.rows[-1][0] - 1) ]  # A377469
                A.rows += [[]]; A.S += [ A.S[-1] * L[0] ] # ludic factorials
            if len(R := A.rows[r]) < A.P[r]: # append more terms to this row
                R += L[ L[0]*len(R) : A.S[r] : L[0] ]
            L = [x for i, x in enumerate(L) if i%L[0]] # M. F. Hasler, Nov 17 2024
  • 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)))))))))
    

Formula

From M. F. Hasler, Nov 12 2024: (Start)
A(r, c) = A(r, c-P(r)) + S(r) = A(r, ((c-1) mod P(r)) + 1) + floor((c-1)/P(r))*S(r) with periods P = (1, 1, 2, 8, 48, 480, 5760, ...) = A377469, and shifts S = (2, 6, 30, 210, 2310, 30030, 510510) = A376237(2, 3, ...). For example:
A(1, c) = A(1, c-1) + 2 = 2 + (c-1)*2 = 2*c,
A(2, c) = A(2, c-1) + 6 = 3 + (c-1)*6 = 6*c - 3,
A(3, c) = A(3, c-2) + 30 = {5 if c is odd else 19} + floor((c-1)/2)*30 = 15*c - 11 + (c mod 2),
A(4, c) = A(4, c-8) + 210 = A(4, ((c-1) mod 8)+1) + floor((c-1)/8)*210, etc. (End)

A272565 Smallest ludic factor of n.

Original entry on oeis.org

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
Offset: 1

Views

Author

Max Barrentine, May 09 2016

Keywords

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
The "ludic factor" here is the k which either yields one of the ludic numbers A003309, or is used to cross out a non ludic number. In that case, this "ludic factor" often does not divide n, see A276569. But in the usual sieve of Eratosthenes, the fact that numbers are crossed out from the list does not mean they don't have other factors, so exactly the same could be considered here, which makes disputable the assertion that numbers have only one ludic factor. - M. F. Hasler, Nov 03 2024

Crossrefs

Cf. A003309 (ludic numbers), A020639 (least prime factor), A027748 (prime factors of n), A192607, A255127, A260738, A276440, A276568, A276569, A302032.
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).

Programs

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)
From M. F. Hasler, Nov 04 2024: (Start)
To rephrase the above: By definition, k is in A276347 iff a(k) = A020639(k).
Particular cases: a(2n) = 2 and a(6n-3) = 3 for all n. (End)

Extensions

Added "smallest" in the definition because the explanation of "only one..." in the first comment might be disputable. - M. F. Hasler, Nov 03 2024

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.

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Jul 30 2015

Keywords

Comments

Ordinal transform of A272565 (Ludic factor), and also of A260738. - Antti Karttunen, Apr 03 2018

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.

Programs

  • 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.

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

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

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.

Original entry on oeis.org

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
Offset: 1

Views

Author

Antti Karttunen, Jul 29 2015

Keywords

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.

Crossrefs

Cf. also A260429, A260439 (corresponding column indices).
Cf. A055396, A260738 for row indices to other arrays similar to A255545.

Programs

  • 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.

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.
Showing 1-10 of 14 results. Next