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

A293439 Number of odious exponents in the prime factorization of n.

Original entry on oeis.org

0, 1, 1, 1, 1, 2, 1, 0, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 1, 2, 2, 2, 1, 1, 1, 2, 0, 2, 1, 3, 1, 0, 2, 2, 2, 2, 1, 2, 2, 1, 1, 3, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 1, 2, 1, 2, 2, 1, 3, 1, 2, 2, 0, 2, 3, 1, 2, 2, 3, 1, 1, 1, 2, 2, 2, 2, 3, 1, 2, 1, 2, 1, 3, 2, 2, 2, 1, 1, 3, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1, 3, 1, 1, 3
Offset: 1

Views

Author

Antti Karttunen, Nov 01 2017

Keywords

Examples

			For n = 2 = 2^1, the only exponent 1 is odious (that is, has an odd Hamming weight and thus is included in A000069), so a(2) = 1.
For n = 24 = 2^3 * 3^1, the exponent 3 (with binary representation "11") is evil (has an even Hamming weight and thus is included in A001969), while the other exponent 1 is odious, so a(24) = 1.
		

Crossrefs

Cf. A270428 (numbers such that a(n) = A001221(n)).
Differs from A144095 for the first time at n=24.

Programs

  • Mathematica
    a[n_] := Total@ ThueMorse[FactorInteger[n][[;; , 2]]]; a[1] = 0; Array[a, 100] (* Amiram Eldar, May 18 2023 *)
  • PARI
    A293439(n) = vecsum(apply(e -> (hammingweight(e)%2), factorint(n)[, 2]));
    
  • Python
    from sympy import factorint
    def A293439(n): return sum(1 for e in factorint(n).values() if e.bit_count()&1) # Chai Wah Wu, Nov 23 2023

Formula

Additive with a(p^e) = A010060(e).
a(n) = A007814(A293443(n)).
From Amiram Eldar, Sep 28 2023: (Start)
a(n) >= 0, with equality if and only if n is an exponentially evil number (A262675).
a(n) <= A001221(n), with equality if and only if n is an exponentially odious number (A270428).
Sum_{k=1..n} a(k) ~ n * (log(log(n)) + B + C), where B is Mertens's constant (A077761) and C = Sum_{p prime} f(1/p) = -0.12689613844142998028..., where f(x) = 1/2 - x - ((1-x)/2) * Product_{k>=0} (1-x^(2^k)). (End)

A144096 A positive integer n is included if at least one of the exponents of the prime-factorization of n does not occur anywhere in n when the exponents and n are represented in base 2.

Original entry on oeis.org

8, 32, 40, 63, 64, 72, 96, 128, 136, 168, 224, 243, 264, 288, 296, 297, 320, 328, 384, 480, 486, 512, 513, 520, 544, 552, 576, 584, 594, 608, 640, 648, 680, 800, 891, 972, 992, 1024, 1026, 1029, 1032, 1056, 1064, 1088, 1096, 1120, 1152, 1160, 1161, 1188
Offset: 1

Views

Author

Leroy Quet, Sep 10 2008

Keywords

Comments

A144095(n) = A001221(n) if n is not included in this sequence.

Examples

			40 has the prime-factorization 2^3 * 5^1. So the exponents are 3 and 1. 40 in binary is 101000. 3 = 11 in binary. 11 does not occur anywhere in 101000. 1 is 1 in binary. 1 does occur (twice) in 101000. At least one exponent (3 = 11 in binary) does not occur in 101000 (= 40 in decimal), so 40 is in the sequence.
		

Crossrefs

Cf. A144095.

Programs

  • Maple
    isA144096 := proc(n) local n2,a,ifa,e2,p ; n2 := convert(n,base,2) ; ifa := ifactors(n)[2] ; for p in ifa do e2 := convert( op(2,p),base,2) ; if not verify(n2,e2,'superlist') then RETURN(true) ; fi; od: RETURN(false) ; end: for n from 1 to 2000 do if isA144096(n) then printf("%d,",n) ; fi; od: # R. J. Mathar, Sep 17 2008
  • Mathematica
    noexQ[n_]:=Min[SequenceCount[IntegerDigits[n,2],#]&/@(IntegerDigits[#,2]&/@(FactorInteger[ n][[;;,2]]))]==0; Select[Range[1200],noexQ] (* Harvey P. Dale, Dec 06 2023 *)

Extensions

63 and 64 inserted and extended by R. J. Mathar, Sep 17 2008
Showing 1-2 of 2 results.