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.
%I A227149 #27 Nov 04 2024 17:17:49 %S A227149 1,2,5,6,9,10,13,14,17,18,21,22,24,27,28,31,32,35,36,39,40,43,44,47, %T A227149 49,50,53,54,57,58,61,62,65,66,69,70,72,75,76,79,80,83,84,87,88,91,92, %U A227149 95,97,98,101,102,105,106,109,110,113,114,117,118,120,123,124 %N A227149 Numbers k for which the sum of digits is odd when k is written in the factorial base (A007623). %C A227149 Numbers k for which minimal number of factorials needed to add to get k is odd. %C A227149 This sequence offers one possible analog to A000069 (odious numbers) in factorial base system. A227132 gives another kind of analog. %C A227149 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, A227148. %C A227149 The sequence gives the positions of odd permutations in the tables A055089 and A195663; and equivalently, the positions of odd numbers in A055091. %H A227149 Antti Karttunen, <a href="/A227149/b227149.txt">Table of n, a(n) for n = 1..2520</a> %H A227149 Wikipedia, <a href="http://en.wikipedia.org/wiki/Parity_of_a_permutation">Parity of permutation</a>. %H A227149 <a href="/index/Fa#facbase">Index entries for sequences related to factorial base representation</a> %t A227149 q[n_] := Module[{k = n, m = 2, s = 0, r}, While[{k, r} = QuotientRemainder[k, m]; k != 0|| r != 0, s += r; m++]; OddQ[s]]; Select[Range[125], q] (* _Amiram Eldar_, Jan 24 2024 *) %o A227149 (Scheme, with _Antti Karttunen_'s IntSeq-library): (define A227149 (MATCHING-POS 1 0 (lambda (i) (odd? (A034968 i))))) %Y A227149 Complement: A227148. Cf. also A000069, A034968, A055091, A227132. %Y A227149 Characteristic function: A374468, see also A262725. %K A227149 nonn,base %O A227149 1,2 %A A227149 _Antti Karttunen_, Jul 02 2013