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

 

Logo

Annual Appeal: Today, Nov 11 2014, is the 4th anniversary of the launch of the new OEIS web site. 70,000 sequences have been added in these four years, all edited by volunteers. Please make a donation (tax deductible in the US) to help keep the OEIS running.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A007091 Numbers in base 5.
(Formerly M0595)
28
0, 1, 2, 3, 4, 10, 11, 12, 13, 14, 20, 21, 22, 23, 24, 30, 31, 32, 33, 34, 40, 41, 42, 43, 44, 100, 101, 102, 103, 104, 110, 111, 112, 113, 114, 120, 121, 122, 123, 124, 130, 131, 132, 133, 134, 140, 141, 142, 143, 144, 200, 201, 202, 203, 204, 210, 211, 212, 213 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Contribution from Rick L. Shepherd, Jun 25 2009: (Start)

Nonnegative integers with no decimal digit > 4.

Thus nonnegative integers in base 10 whose doubling by normal addition or multiplication requires no carry operation. (End)

It appears that this sequence corresponds to the numbers n for which twice the sum of digits of n is the sum of digits of 2*n. [From Remy Sigrist (remysigrist(AT)free.fr), Nov 22 2009]

REFERENCES

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

Nathaniel Johnston, Table of n, a(n) for n = 0..10000

FORMULA

a(0)=0 a(n)=10*a(n/5) if n==0 (mod 5) a(n)=a(n-1)+1 otherwise. - Benoit Cloitre, Dec 22 2002

MAPLE

A007091 := proc(n) local l: if(n=0)then return 0: fi: l:=convert(n, base, 5): return op(convert(l, base, 10, 10^nops(l))): end: seq(A007091(n), n=0..58); # Nathaniel Johnston, May 06 2011

MATHEMATICA

Table[ FromDigits[ IntegerDigits[n, 5]], {n, 0, 60}]

PROG

(PARI) a(n)=if(n<1, 0, if(n%5, a(n-1)+1, 10*a(n/5)))

CROSSREFS

Cf. A000042, A007088, A007089, A007090, A007092, A007093, A007094, A007095.

Sequence in context: A174139 A037325 A037469 * A058185 A080897 A117383

Adjacent sequences:  A007088 A007089 A007090 * A007092 A007093 A007094

KEYWORD

nonn,easy,base

AUTHOR

N. J. A. Sloane, Robert G. Wilson v

STATUS

approved

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

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

Last modified November 26 11:14 EST 2014. Contains 250056 sequences.