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!)
A227062 Numbers whose base-5 sum of digits is 5. 9
9, 13, 17, 21, 29, 33, 37, 41, 45, 53, 57, 61, 65, 77, 81, 85, 101, 105, 129, 133, 137, 141, 145, 153, 157, 161, 165, 177, 181, 185, 201, 205, 225, 253, 257, 261, 265, 277, 281, 285, 301, 305, 325, 377, 381, 385, 401, 405, 425, 501, 505, 525, 629, 633, 637 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

All of the entries are odd.

Subsequence of A016813. - Michel Marcus, Sep 03 2013

In general, the set of numbers with sum of base-b digits equal to b is a subset of { (b-1)*k + 1; k = 2, 3, 4, ... }. - M. F. Hasler, Dec 23 2016

LINKS

Table of n, a(n) for n=1..55.

EXAMPLE

The 5-ary expansion of 9 is (1,4), which has sum of digits 5.

The 5-ary expansion of 53 is (2,0,3), which has sum of digits 5.

10 is not on the list since the 5-ary expansion of 10 is (2,0), which has sum of digits 2 not 5.

MATHEMATICA

Select[Range@ 640, Total@ IntegerDigits[#, 5] == 5 &] (* Michael De Vlieger, Dec 23 2016 *)

PROG

(Sage) [i for i in [0..1000] if sum(Integer(i).digits(base=5))==5]

(PARI) select( is(n)=sumdigits(n, 5)==5, [1..999]) \\ M. F. Hasler, Dec 23 2016

CROSSREFS

Cf. A018900, A187813.

Cf. A226636 (b = 3), A226969 (b = 4), A227080 (b = 6), A227092 (b = 7), A227095 (b = 8), A227238 (b = 9), A052224 (b = 10).

Sequence in context: A050109 A294357 A329388 * A134441 A174055 A273059

Adjacent sequences:  A227059 A227060 A227061 * A227063 A227064 A227065

KEYWORD

nonn,base,easy

AUTHOR

Tom Edgar, Sep 01 2013

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 May 29 20:42 EDT 2020. Contains 334710 sequences. (Running on oeis4.)