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!)
A226969 Numbers whose base-4 sum of digits is 4. 8
7, 10, 13, 19, 22, 25, 28, 34, 37, 40, 49, 52, 67, 70, 73, 76, 82, 85, 88, 97, 100, 112, 130, 133, 136, 145, 148, 160, 193, 196, 208, 259, 262, 265, 268, 274, 277, 280, 289, 292, 304, 322, 325, 328, 337, 340, 352, 385, 388, 400, 448, 514, 517, 520, 529, 532 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Subsequence of A016777. - 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..56.

EXAMPLE

The quaternary expansion of 13 is (3,1), which has sum of digits 4.

The quaternary expansion of 40 is (2,2,0), which has sum of digits 4.

17 is not on the list since the quaternary expansion of 17 is (1,0,1), which has sum of digits 2 not 4.

MATHEMATICA

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

PROG

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

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

CROSSREFS

Cf. A018900, A187813.

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

Sequence in context: A327137 A026319 A120153 * A007770 A212979 A114961

Adjacent sequences:  A226966 A226967 A226968 * A226970 A226971 A226972

KEYWORD

nonn,base

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 28 12:18 EDT 2020. Contains 334681 sequences. (Running on oeis4.)