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!)
A037315 (sum of base 3 digits of n)=(sum of base 10 digits of n). 2
1, 2, 21, 22, 23, 40, 41, 80, 111, 112, 113, 132, 133, 134, 150, 151, 152, 204, 205, 206, 222, 223, 224, 312, 313, 314, 350, 420, 421, 422, 440, 510, 511, 512, 530, 600, 601, 602, 800, 1014, 1015, 1016, 1032, 1033, 1034, 1070, 1140 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A007953(a(n)) = A053735(a(n)); A180019(a(n)) = 0. [From Reinhard Zumkeller, Aug 06 2010]

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

MAPLE

filter:= n -> convert(convert(n, base, 3), `+`)=convert(convert(n, base, 10), `+`):

select(filter, [$1..10000]); # Robert Israel, Mar 11 2018

MATHEMATICA

Select[Range[1200], Total[IntegerDigits[#]]==Total[IntegerDigits[#, 3]]&] (* Harvey P. Dale, May 11 2018 *)

PROG

(PARI) isok(n) = sumdigits(n, 3) == sumdigits(n, 10); \\ Michel Marcus, Mar 12 2018

CROSSREFS

Cf A007953, A053735, A180019.

Sequence in context: A171549 A077678 A037309 * A110301 A233135 A322925

Adjacent sequences:  A037312 A037313 A037314 * A037316 A037317 A037318

KEYWORD

nonn,base,look

AUTHOR

Clark Kimberling

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 March 30 16:13 EDT 2020. Contains 333127 sequences. (Running on oeis4.)