login
The OEIS is supported by the many generous donors 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

%I #12 May 19 2019 14:55:44

%S 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,

%T 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,

%U 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

%N Number of distinct odd numbers formed from the digits of n.

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

%t 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 *)

%K nonn,base,easy

%O 0,12

%A _Felice Russo_

%E More terms from _Erich Friedman_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)