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

A260720 a(n) = A091222(A260441(n)): number of irreducible factors (in ring GF(2)[X]) of the binary encoded polynomial obtained after the n-th iteration of A234742, when starting with the initial value 1361.

Original entry on oeis.org

2, 4, 5, 2, 6, 4, 4, 8, 3, 3, 4, 3, 3, 3, 2, 2, 3, 5, 2, 4, 7, 2, 5, 3, 7, 3, 3, 4, 4, 7, 4, 6, 5, 3, 2, 5, 6, 4, 8, 4, 4, 6, 3, 4, 5, 3, 3, 4, 5, 6, 6, 6, 3, 6, 10, 6, 4, 5, 6, 8, 3, 3, 5, 3, 8, 2, 3, 4, 5, 6, 5, 4, 5, 5, 7, 4, 5, 6, 3, 5, 6, 5, 6, 7, 3, 8, 7, 10, 7, 9, 6, 5, 2, 6, 5, 7, 6, 8, 6, 3, 10, 3, 9, 8, 6, 6, 5, 8, 6, 7, 3, 6, 8, 5, 5, 5, 8, 5, 6, 5, 7
Offset: 0

Views

Author

Antti Karttunen, Aug 04 2015

Keywords

Comments

Records occur in positions 0, 1, 2, 4, 7, 54, 139, 174, 225, 398, 778, and they are 2, 4, 5, 6, 8, 10, 11, 13, 16, 20, 21.
First 2's occur at positions 0, 3, 14, 15, 18, 21, 34, 65, 92, 135, 200, 255, 339, 362, 468, 511, 825, 1042, 1809.
Note that if this sequence ever obtains value 1, then the rest of terms are also 1's, as then A260441 has attained as its constant value one of the terms of A091214 (which is a subsequence of A235035, the fixed points of A234742).

Examples

			See example in A260441. This sequence gives the number of those irreducible factors, counted with multiplicity. For example, a(0) = 2 (for 61 * 61), a(1) = 4 (for 3 * 3 * 3 * 299). Note that irreducibility here refers to irreducibility in ring GF(2)[X], as for example 299 = 13*23 when factored to ordinary primes.
		

Crossrefs

Programs

  • PARI
    allocatemem((2^30));
    {my(n=1361, fm); for(i=0,2049, fm=factor(Pol(binary(n))*Mod(1, 2)); write("b260720.txt", i, " ", sum(k=1, #fm~, fm[k, 2])); n = factorback(subst(lift(fm),x,2))); };
    
  • Scheme
    (define (A260720 n) (A091222 (A260441 n)))

Formula

a(n) = A091222(A260441(n)).

A234742 Product of the binary encodings of the irreducible factors (with multiplicity) of the polynomial over GF(2) whose encoding is n.

Original entry on oeis.org

0, 1, 2, 3, 4, 9, 6, 7, 8, 21, 18, 11, 12, 13, 14, 27, 16, 81, 42, 19, 36, 49, 22, 39, 24, 25, 26, 63, 28, 33, 54, 31, 32, 93, 162, 91, 84, 37, 38, 99, 72, 41, 98, 75, 44, 189, 78, 47, 48, 77, 50, 243, 52, 57, 126, 55, 56, 117, 66, 59, 108, 61, 62, 147, 64, 441
Offset: 0

Views

Author

Antti Karttunen, Jan 22 2014

Keywords

Comments

"Product" refers to the ordinary multiplication of integers.
Differs from A235042 and A236837 for the first time at n=25, where a(n)=25, while A235042(25)=5 and A236837(25)=0. Thus A234741(A234742(n)) = n up to n=24.
a(n) >= n. [All terms of the table A061858 are nonnegative as the product of multiplying two numbers with carries is never less than when multiplying them without carries.]
Specifically, for all n, a(A091209(n)) > A091209(n).
a(A091209(n)) is always composite and, by the above inequality, larger than A091209(n), which implies that none of the terms of A091209 occur in this sequence. Cf. also A236844.
Starting with various terms (primes) in A235033 and iterating the map A234742, we get 5 -> 9 -> 21 -> 49 -> 77 -> 177 -> 333 = a(333).
Another example: 17 -> 81 -> 169 -> 309 -> 721 = a(721).
Does every chain of such iterations eventually reach a fixed point? (One of the terms of A235035.) Or do some of them manage to avoid such "traps" indefinitely? (Note how the terms of A235035 seem to get rarer, but only rather slowly.)
Starting from 23, we get the sequence: 23, 39, 99, 279, 775, 1271, 3003, 26411, 45059, ... which reaches its fixed point, 3643749709604450870616156947649219, after 55 iterations. - M. F. Hasler, Feb 18 2014. [This is now sequence A244323. See also A260729, A260735 and A260441.] - Antti Karttunen, Aug 05 2015
Note also that when coming backwards from some term of such a chain by iterating A234741, we may not necessarily end at the same term we started from.

Examples

			3 has binary representation '11', which encodes the polynomial X + 1, which is irreducible in GF(2)[X], so the result is just a(3)=3.
5 has binary representation '101' which encodes the polynomial X^2 + 1, which is reducible in the polynomial ring GF(2)[X], factoring as (X+1)(X+1), i.e., 5 = A048720(3,3), as 3 ('11' in binary) encodes the polynomial (X+1), irreducible in GF(2)[X]. 3*3 = 9, thus a(5)=9.
9 has binary representation '1001', which encodes the polynomial X^3 + 1, which factors (in GF(2)[X]!) as (X+1)(X^2+X+1), i.e., 9 = A048720(3,7) (7, '111' in binary, encodes the other factor polynomial X^2+X+1). 3*7 = 21, thus a(9)=21.
25 has binary representation '11001', which encodes the polynomial X^4 + X^3 + 1, which is irreducible in GF(2)[X], so the result is just a(25)=25.
		

Crossrefs

A235035 gives the k for which a(k)=k.
A236853(n) gives the number of times n occurs in this sequence.
A236842 gives the same sequence sorted and with duplicates removed, A236844 gives the numbers that do not occur here, A236845 gives numbers that occur more than once, A236846 the least inverse and A236847 the greatest inverse. A236850 gives such k that a(k) = A236837(k).
Cf. also A260712, A260713, A260716 and A244323, A260729, A260735, A260441 (iterations starting from various terms of A236844).

Programs

Formula

To compute a(n): factor the polynomial over GF(2) encoded by n, into its irreducible factors; in other words, find a unique multiset of terms i, j, ..., k (not necessarily distinct) from A014580 for which i x j x ... x k = n, where x stands for the carryless multiplication A048720. Then a(n) = i*j*...*k is the product of those terms with ordinary multiplication. Because of the effect of the carry-bits in the latter, the result is always greater than or equal to n, so we have a(n) >= n for all n.
a(2n) = 2*a(n).
a(A235035(n)) = A235035(n).
A236379(n) = a(n) - n.
For all n, a(n) >= A236837(n).

A260712 Number of iterations of A234742 needed when started from n before a fixed point is reached.

Original entry on oeis.org

0, 0, 0, 0, 6, 0, 0, 0, 5, 6, 0, 0, 0, 0, 5, 0, 4, 5, 0, 6, 4, 0, 55, 0, 0, 0, 4, 0, 141, 5, 0, 0, 140, 4, 1, 5, 0, 0, 54, 6, 0, 4, 2, 0, 145, 55, 0, 0, 3, 0, 6, 0, 2, 4, 0, 0, 1, 141, 0, 5, 0, 0, 3, 0, 2, 140, 0, 4, 4, 1, 4, 5, 0, 0, 1, 0, 2, 54, 5, 6, 3, 0, 3, 4, 4, 2, 0, 0, 4, 145, 0, 55, 139, 0, 1, 0, 0, 3, 53, 0, 3, 6, 0, 0, 3, 2, 14, 4, 0
Offset: 1

Views

Author

Antti Karttunen, Aug 04 2015

Keywords

Comments

The fixed points of A234742 are in A235035, thus the latter gives the zeros of this sequence.
It is not known whether the sequence is well-defined for all values. For example, does a(455) or a(1361) have a finite value? Cf. sequences A260735 and A260441.

Crossrefs

Cf. A235035 (gives the positions of zeros).
Subsequences: A260713, A260716.

Programs

  • PARI
    allocatemem((2^30));
    A234742(n) = factorback(subst(lift(factor(Mod(1, 2)*Pol(binary(n)))), x, 2)); \\ After M. F. Hasler's Feb 18 2014 code.
    A260712(n) = {my(prev=-1,i=-1); until((n==prev), prev = n; n = A234742(n); i++); return(i); };
    for(n=1, 454, write("b260712.txt", n, " ", A260712(n)));
    
  • Scheme
    ;; Uses memoizing definec-macro.
    (definec (A260712 n) (let ((next (A234742 n))) (if (= next n) 0 (+ 1 (A260712 next)))))
    
  • Scheme
    (define (A260712loop n) (let loop ((n (A234742 n)) (prev_n n) (i 0)) (if (= n prev_n) i (loop (A234742 n) n (+ 1 i)))))

Formula

If A234742(n) = n, then a(n) = 0, otherwise a(n) = 1 + a(A234742(n)).
Other identities:
a(A235035(n)) = 0.
a(2n) = a(n).

A260735 Iterates of A234742, starting from value a(0) = 455, with a(1) = A234742(a(0)), a(2) = A234742(a(1)), etc.

Original entry on oeis.org

455, 3087, 24843, 72975, 332563, 602919, 5893875, 221402727, 322063831, 5853742587, 10696444275, 75642464331, 749833439355, 1724537517955, 2295761459035, 4498164915283, 9436077956619, 369311889576231, 10610033249983167, 135786986032294135, 460149860040811083, 2879918014301480295, 63102417694969716063, 339029616686070752991
Offset: 0

Views

Author

Antti Karttunen, Aug 04 2015

Keywords

Comments

455 is the first term of A236844 that doesn't settle to a fixed point at least for the first 2000 iterations of A234742. Cf. also A260713.

Examples

			The initial value a(0) = 455 ("111000111" in binary) encodes polynomial (with coefficients 0 or 1) x^8 + x^7 + x^6 + x^2 + x + 1, which in ring GF(2)[X] factorizes as (x + 1)(x + 1)(x^2 + x + 1)(x^2 + x + 1)(x^2 + x + 1). (x+1) is encoded by 3 ("11" in binary) and (x^2 + x + 1) by 7 ("111" in binary). Multiplying 3*3*7*7*7 yields the next term of the sequence, thus a(1) = 3087.
3087 ("110000001111" in binary) in turn encodes polynomial x^11 + x^10 + x^3 + x^2 + x + 1 which factorizes as (x + 1)(x^2 + x + 1)(x^2 + x + 1)(x^3 + x^2 + 1)(x^3 + x^2 + 1). Polynomial (x^3 + x^2 + 1) is encoded by 13, as 13 is "1101" in binary. Multiplying 3*7*7*13*13 yields the next term of the sequence, a(2) = 24843.
		

Crossrefs

Cf. A260719 (for each term, gives the number of irreducible factors in ring GF(2)[X] for the corresponding encoded polynomial, equal to how many numbers are multiplied together at each step).
Subsequence of A004767.
Cf. also A244323, A260729, A260441 for iterations starting from other values.

Programs

  • PARI
    allocatemem((2^30));
    A234742(n) = factorback(subst(lift(factor(Mod(1, 2)*Pol(binary(n)))), x, 2)); \\ After M. F. Hasler's Feb 18 2014 code.
    iterates_of_A234742(start, filename) = {my(n=start, prev=-1, prevprev=-1, i=0); until((n==prevprev), write(filename, i, " ", n); prevprev = prev; prev = n; n = A234742(n); i++)} \\ Computes b-file up to the second occurrence of the fixed point or until the user presses Ctrl-C.
    iterates_of_A234742(455, "b260735.txt")
    
  • Scheme
    ;; With memoizing macro definec.
    (definec (A260735 n) (if (zero? n) 455 (A234742 (A260735 (- n 1)))))

Formula

a(0) = 455; for n >= 1, a(n) = A234742(a(n-1)).

A260716 a(n) = number of iterations of A234742 needed when starting from A091209(n) before a fixed point is reached.

Original entry on oeis.org

6, 4, 55, 141, 2, 2, 4, 5, 3, 4, 3, 14, 2, 1, 4, 3, 1, 18, 6, 3, 17, 36, 1, 10, 13, 1, 10, 2, 2, 86, 27, 7, 4, 50, 1, 4, 6, 4, 3, 13, 7, 3, 1, 207, 2, 7, 10, 10, 128, 7, 2, 4, 2, 9, 20, 2, 15, 24, 3, 10, 64, 7, 4, 4, 1, 4, 15, 8, 4, 1, 45, 3, 2, 1, 1, 2, 6, 28, 1, 2, 11, 1, 3, 14, 13, 3, 11, 12, 4, 28, 3, 7, 55, 40, 9, 4, 51, 5, 2, 6, 1, 2, 1, 15, 1
Offset: 1

Views

Author

Antti Karttunen, Aug 04 2015

Keywords

Comments

It is not known whether the sequence is well-defined for all values. For example, does a(144) have a finite value? Cf. the sequence A260441, starting iteration from 1361 = A091209(144).

Crossrefs

Programs

  • PARI
    allocatemem((2^29));
    v091209 = [5, 17, 23, 29, 43, 53, 71, 79, 83, 89, 101, 107, 113, 127, 139, 149, 151, 163, 173, 179, 181, 197, 199, 223, 227, 233, 251, 257, 263, 269, 271, 277, 281, 293, 307, 311, 317, 331, 337, 347, 349, 353, 359, 367, 373, 383, 389, 401, 409, 421, 431, 439, 443, 449, 457, 461, 467, 479, 491, 503, 509, 521, 523, 541, 547, 569, 571, 577, 593, 599, 619, 641, 643, 653, 659, 673, 683, 691, 709, 727, 733, 739, 743, 751, 773, 797, 809, 811, 821, 823, 829, 839, 853, 857, 863, 881, 887, 907, 919, 937, 941, 947, 977, 983, 991, 997, 1009, 1013, 1021, 1031, 1049, 1061, 1087, 1091, 1093, 1097, 1103, 1109, 1117, 1129, 1151, 1171, 1181, 1187, 1201, 1213, 1217, 1223, 1229, 1231, 1237, 1249, 1259, 1277, 1283, 1289, 1297, 1301, 1303, 1307, 1319, 1321, 1327];
    A091209(n) = v091209[n];
    A234742(n) = factorback(subst(lift(factor(Mod(1, 2)*Pol(binary(n)))), x, 2)); \\ After M. F. Hasler's Feb 18 2014 code.
    A260712(n) = {my(prev=-1,i=-1); until((n==prev), prev = n; n = A234742(n); i++); return(i); }
    A260716(n) = A260712(A091209(n));
    for(n=1, 143, write("b260716.txt", n, " ", A260716(n)));
    
  • Scheme
    (define (A260716 n) (A260712 (A091209 n)))

Formula

a(n) = A260712(A091209(n)).

A244323 Iterates of A234742, starting from value a(0) = 23, with a(1) = A234742(a(0)), a(2) = A234742(a(1)), etc.

Original entry on oeis.org

23, 39, 99, 279, 775, 1271, 3003, 26411, 45059, 53219, 96811, 180063, 538083, 1557987, 2994571, 5394027, 76600323, 78603291, 646326135, 5260930155, 11705029515, 55771437087, 918661840551, 2662267345431, 156054629431431, 1885162669463151, 2739827178329319, 23916267980687775, 343334160580618935
Offset: 0

Views

Author

Antti Karttunen and M. F. Hasler, Jul 23 2014

Keywords

Comments

The sequence reaches its fixed point at a(55) = 3643749709604450870616156947649219, after which the sequence stays constant, a(55) = a(56) = a(57), etc.

Crossrefs

Cf. also A260729, A260735, A260441 (other such iterations).

Programs

  • PARI
    A234742(n)=factorback(subst(lift(factor(Mod(1, 2)*Pol(binary(n)))), x, 2))+(n==1)
    iterates_of_A234742(start,filename) = {my(n=start,prev=-1,prevprev=-1,i=0); until((n==prevprev), write(filename, i, " ", n); prevprev = prev; prev = n; n = A234742(n); i++)} \\ Computes b-file up to the second occurrence of the fixed point.
    iterates_of_A234742(23,"b244323.txt")

A260729 Iterates of A234742, starting from value a(0) = 29, with a(1) = A234742(a(0)), a(2) = A234742(a(1)), etc.

Original entry on oeis.org

29, 33, 93, 217, 341, 961, 2821, 7409, 8973, 53625, 94325, 225169, 470517, 1349089, 4076589, 22862205, 40165377, 506257425, 918577233, 1042701969, 5347778553, 76822655445, 242180261569, 243151045949, 835744242025, 1398202164821, 7718585207745, 17886399120625, 36628781776125, 140199249091321, 579641775855025, 3110633457224293, 9887055813390673
Offset: 0

Views

Author

Antti Karttunen, Aug 04 2015

Keywords

Comments

The sequence reaches its fixed point at a(141) = after which the sequence stays constant, a(142) = a(143) = a(144), etc.

Crossrefs

Cf. also A244323, A260735, A260441 for iterations starting from other values.

Programs

  • PARI
    allocatemem((2^29));
    A234742(n) = factorback(subst(lift(factor(Mod(1, 2)*Pol(binary(n)))), x, 2)); \\ After M. F. Hasler's Feb 18 2014 code.
    iterates_of_A234742(start, filename) = {my(n=start, prev=-1, prevprev=-1, i=0); until((n==prevprev), write(filename, i, " ", n); prevprev = prev; prev = n; n = A234742(n); i++)} \\ Computes b-file up to the second occurrence of the fixed point.
    iterates_of_A234742(29, "b260729.txt")
    
  • Scheme
    ;; With memoizing macro definec.
    (definec (A260729 n) (if (zero? n) 29 (A234742 (A260729 (- n 1)))))

Formula

a(0) = 29; for n >= 1, a(n) = A234742(a(n-1)).
Showing 1-7 of 7 results.