Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A014261
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A014261 Numbers that contain odd digits only. +0
9
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 31, 33, 35, 37, 39, 51, 53, 55, 57, 59, 71, 73, 75, 77, 79, 91, 93, 95, 97, 99, 111, 113, 115, 117, 119, 131, 133, 135, 137, 139, 151, 153, 155, 157, 159, 171, 173, 175, 177, 179, 191, 193, 195, 197, 199, 311, 313, 315, 317, 319 (list; graph; listen)
OFFSET

1,2

COMMENT

Or, numbers whose product of digits is odd.

A121759(a(n)) = a(n); A000035(A007959(a(n))) = 1. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Nov 30 2007

MATHEMATICA

f[n_Integer] := Block[{d = IntegerDigits[n], c = 0, l}, l = Length[d] - 1; If[ OddQ[ d[[ -1]]], d[[ -1]]++ ]; d[[ -1]]++; If[ d[[ -1]] > 10, c++; d[[ -1]] = 1]; While[l != 0, If[c == 1, d[[l]]++; c-- ]; If[ EvenQ[ d[[l]]], d[[l]]++ ]; If[ d[[l]] > 10, c++; d[[l]] = 1]; l-- ]; If[c == 1, d[[1]] = d[[1]] + 10]; FromDigits[d]]; NestList[f, 1, 50]

PROGRAM

(MAGMA) [ n : n in [1..129] | IsOdd(&*Intseq(n, 10)) ];

CROSSREFS

Similar to but different from A066640.

Sequence in context: A093031 A138217 A074775 this_sequence A066640 A137507 A061808

Adjacent sequences: A014258 A014259 A014260 this_sequence A014262 A014263 A014264

KEYWORD

nonn,base,easy

AUTHOR

njas

EXTENSIONS

More terms from rgwv, Oct 18 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research