login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A045841 Number of distinct odd numbers formed from the digits of n. 0
0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 2, 2, 4, 2, 4, 2, 4, 2, 4, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 4, 2, 2, 2, 4, 2, 4, 2, 4, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 4, 2, 4, 2, 2, 2, 4, 2, 4, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 4, 2, 4, 2, 4, 2, 2, 2, 4, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 4, 2, 4, 2, 4, 2, 4, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,12

LINKS

Table of n, a(n) for n=0..99.

EXAMPLE

a(37)=4 because we can form 3, 7, 37 and 73.

MATHEMATICA

f[n_]:=Length[Select[FromDigits/@Flatten[Rest[Permutations/@Subsets[IntegerDigits[n]]], 1], OddQ]]; Table[f[i], {i, 0, 100}]  (* Harvey P. Dale, Jan 29 2011 *)

CROSSREFS

Sequence in context: A102641 A054763 A100374 * A040003 A106469 A082508

Adjacent sequences:  A045838 A045839 A045840 * A045842 A045843 A045844

KEYWORD

nonn,base,easy

AUTHOR

Felice Russo

EXTENSIONS

More terms from Erich Friedman

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 21 06:00 EST 2019. Contains 329350 sequences. (Running on oeis4.)