Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A064438
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A064438 Numbers n which are divisible by the sum of their quaternary digits. +0
4
1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 20, 21, 24, 28, 30, 32, 33, 35, 36, 40, 42, 48, 50, 52, 54, 60, 63, 64, 66, 68, 69, 72, 76, 78, 80, 81, 84, 88, 90, 91, 96, 100, 102, 108, 112, 114, 120, 126, 128, 129, 132, 136, 138, 140, 144, 148, 150, 154, 156, 160, 162, 168, 171, 180 (list; graph; listen)
OFFSET

1,2

COMMENT

A good "puzzle" sequence - guess the rule given the first twenty or so terms.

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,1000

Matthew M. Conroy, Home page (listed instead of email address)

EXAMPLE

Quaternary representation of 28 is 130, 1 + 3 + 0 = 4 divides 28.

PROGRAM

(ARIBAS): maxarg := 190; for n := 1 to maxarg do if n mod sum(quaternarray(n)) = 0 then write(n, " "); end; end; function quaternarray(n: integer): array; var k: integer; stk: stack; begin while n > 0 do k := n mod 4; stack_push(stk, k); n := (n - k) div 4; end; return stack2array(stk); end; .

(PARI) SumD(x)= { local(s); s=0; while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } baseE(x, b)= { local(d, e, f); e=0; f=1; while (x>0, d=x-b*(x\b); x\=b; e+=d*f; f*=10); return(e) } { n=0; for (m=1, 10^9, if (m%(SumD(baseE(m, 4)))==0, write("b064438.txt", n++, " ", m); if (n==1000, break)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Sep 14 2009]

CROSSREFS

A005349 (decimal), A049445 (binary), A064150 (ternary)

Sequence in context: A048716 A010434 A074230 this_sequence A067947 A053640 A097755

Adjacent sequences: A064435 A064436 A064437 this_sequence A064439 A064440 A064441

KEYWORD

base,easy,nice,nonn

AUTHOR

Len Smiley (smiley(AT)math.uaa.alaska.edu), Oct 01 2001

EXTENSIONS

More terms from Matthew M. Conroy, Oct 02 2001

OFFSET changed from 0,2 to 1,2 by Harry J. Smith (hjsmithh(AT)sbcglobal.net), Sep 14 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research