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.

A227130 Numbers k for which there is an even number of nonzero digits when k is written in the factorial base (A007623).

This page as a plain text file.
%I A227130 #18 Jan 24 2024 01:48:52
%S A227130 0,3,5,7,8,10,13,14,16,19,20,22,25,26,28,30,33,35,36,39,41,42,45,47,
%T A227130 49,50,52,54,57,59,60,63,65,66,69,71,73,74,76,78,81,83,84,87,89,90,93,
%U A227130 95,97,98,100,102,105,107,108,111,113,114,117,119,121,122,124
%N A227130 Numbers k for which there is an even number of nonzero digits when k is written in the factorial base (A007623).
%C A227130 This sequence offers one possible analog to A001969 (evil numbers) in the factorial base system. A227148 gives another kind of analog.
%C A227130 In each range [0,n!-1] exactly half of the integers are found in this sequence, and the other half of them are found in the complement, A227132.
%C A227130 The sequence gives the positions of even permutations in the tables A060117 and A060118.
%H A227130 Antti Karttunen, <a href="/A227130/b227130.txt">Table of n, a(n) for n = 1..2520</a>
%H A227130 Wikipedia, <a href="http://en.wikipedia.org/wiki/Parity_of_a_permutation">Parity of permutation</a>.
%t A227130 q[n_] := Module[{k = n, m = 2, c = 0, r}, While[{k, r} = QuotientRemainder[k, m]; k != 0 || r != 0, If[r != 0, c++]; m++]; EvenQ[c]]; Select[Range[0, 150], q] (* _Amiram Eldar_, Jan 23 2024 *)
%o A227130 (Scheme, with _Antti Karttunen_'s IntSeq-library): (define A227130 (MATCHING-POS 1 0 (lambda (i) (even? (A060130 i)))))
%Y A227130 Complement: A227132. Cf. also A001969, A060130, A227148.
%K A227130 nonn,base
%O A227130 1,2
%A A227130 _Antti Karttunen_, Jul 02 2013