login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A227132
Numbers k for which there is an odd number of nonzero digits when k is written in the factorial base (A007623).
9
1, 2, 4, 6, 9, 11, 12, 15, 17, 18, 21, 23, 24, 27, 29, 31, 32, 34, 37, 38, 40, 43, 44, 46, 48, 51, 53, 55, 56, 58, 61, 62, 64, 67, 68, 70, 72, 75, 77, 79, 80, 82, 85, 86, 88, 91, 92, 94, 96, 99, 101, 103, 104, 106, 109, 110, 112, 115, 116, 118, 120, 123, 125
OFFSET
1,2
COMMENTS
This sequence offers one possible analog to A000069 (odious numbers) in the factorial base system. A227149 gives another kind of analog.
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, A227130.
The sequence gives the positions of odd permutations in the tables A060117 and A060118.
LINKS
MATHEMATICA
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++]; OddQ[c]]; Select[Range[150], q] (* Amiram Eldar, Jan 24 2024 *)
PROG
(Scheme, with Antti Karttunen's IntSeq-library): (define A227132 (MATCHING-POS 1 0 (lambda (i) (odd? (A060130 i)))))
CROSSREFS
Complement: A227130.
Cf. also A000069, A060130, A227149.
Sequence in context: A338348 A184978 A333231 * A024978 A191194 A191231
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Jul 02 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 22 05:46 EDT 2024. Contains 376097 sequences. (Running on oeis4.)