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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A043631 Numbers n such that base 9 representation has exactly 2 runs. 0
9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 90, 92, 93, 94, 95 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

MAPLE

rlen := proc(n, ba) local rs, s, dgs, i ; rs :=0 ; s := 0; dgs := convert(n, base, ba) ; for i from 1 to nops(dgs) do if s = 0 then s :=1 ; else if op(i, dgs) <> op(i-1, dgs) then rs := rs+1 ; s :=1 ; else s :=s+1 ; fi; fi; od: rs := rs+1 ; RETURN (rs) ; end: for n from 1 to 200 do if rlen(n, 9) = 2 then printf("%d, ", n) ; fi; od: [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 20 2008]

CROSSREFS

Sequence in context: A107576 A043698 A031954 * A043457 A202707 A031078

Adjacent sequences:  A043628 A043629 A043630 * A043632 A043633 A043634

KEYWORD

nonn,base

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

EXTENSIONS

Extended by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 20 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 02:51 EST 2012. Contains 205860 sequences.