login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A245355 Sum of digits of n written in fractional base 8/5. 18
0, 1, 2, 3, 4, 5, 6, 7, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 13, 14, 12, 13, 14, 15, 16, 17, 18, 19, 11, 12, 13, 14, 15, 16, 17, 18, 13, 14, 15, 16, 17, 18, 19, 20, 18, 19, 20, 21, 22, 23, 24, 25, 14, 15, 16, 17, 18, 19, 20, 21, 13, 14, 15, 16, 17 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

The base 8/5 expansion is unique and thus the sum of digits function is well-defined.

LINKS

Table of n, a(n) for n=0..68.

FORMULA

a(n) = A007953(A024647(n)).

EXAMPLE

In base 8/5 the number 20 is represented by 524 and so a(20) = 5 + 2 + 4 = 11.

PROG

(Sage)

def basepqsum(p, q, n):

    L = [n]

    i = 1

    while L[i-1]>=p:

        x=L[i-1]

        L[i-1]=x.mod(p)

        L.append(q*(x//p))

        i+=1

    return sum(L)

[basepqsum(8, 5, i) for i in [0..100]]

CROSSREFS

Cf. A024647, A007953, A000120, A053829, A244040.

Sequence in context: A007948 A038389 A058223 * A307785 A331305 A279313

Adjacent sequences:  A245352 A245353 A245354 * A245356 A245357 A245358

KEYWORD

nonn,base

AUTHOR

Tom Edgar, Jul 18 2014

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 8 03:38 EDT 2020. Contains 335504 sequences. (Running on oeis4.)