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!)
A245341 Sum of digits of n written in fractional base 5/2. 1
0, 1, 2, 3, 4, 2, 3, 4, 5, 6, 4, 5, 6, 7, 8, 3, 4, 5, 6, 7, 5, 6, 7, 8, 9, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 5, 6, 7, 8, 9, 7, 8, 9, 10, 11, 9, 10, 11, 12, 13, 5, 6, 7, 8, 9, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 8, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
The base 5/2 expansion is unique and thus the sum of digits function is well-defined.
LINKS
EXAMPLE
In base 5/2 the number 7 is represented by 22 and so a(7)=2+2=4.
MAPLE
a:= proc(n) `if`(n<1, 0, irem(n, 5, 'q')+a(2*q)) end:
seq(a(n), n=0..81); # Alois P. Heinz, May 14 2021
PROG
(Sage) # uses [basepqsum from A245355]
[basepqsum(5, 2, y) for y in [0..200]]
CROSSREFS
Sequence in context: A049865 A070771 A274640 * A215088 A330786 A182985
KEYWORD
nonn,base
AUTHOR
James Van Alstine, Jul 18 2014
EXTENSIONS
Definition corrected by Georg Fischer, May 14 2021
STATUS
approved

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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)