Search: id:A064481 Results 1-1 of 1 results found. %I A064481 %S A064481 1,2,3,4,5,6,8,10,12,15,16,18,20,24,25,26,27,28,30,32,36,40,42,45,48, %T A064481 50,51,52,54,56,60,63,64,65,66,72,75,76,78,80,85,88,90,91,96,99,100, %U A064481 102,104,105,112,117,120,125,126,128,130,132,135,136,138,140,144,145 %N A064481 Divisible by the sum of the digits of its base 5 representation. %H A064481 Harry J. Smith, Table of n, a(n) for n=1,...,1000 %e A064481 Base 5 representation of 28 is 103, 1 + 0 + 3 = 4 divides 28. %o A064481 (ARIBAS): maxarg := 160; for n := 1 to maxarg do if n mod sum(basearray(n, 5)) = 0 then write(n," "); end; end; function basearray(n,b: integer): array; var k: integer; stk: stack; begin while n > 0 do k := n mod b; stack_push(stk,k); n := (n - k) div b; end; return stack2array(stk); end;. %o A064481 (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, 5)))==0, write("b064481.txt", n++, " ", m); if (n==1000, break)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Sep 15 2009] %Y A064481 A005349 (base 10), A049445 (base 2), A064150 (base 3), A064438 (base 4). %Y A064481 Sequence in context: A121492 A078931 A003401 this_sequence A067939 A067784 A018744 %Y A064481 Adjacent sequences: A064478 A064479 A064480 this_sequence A064482 A064483 A064484 %K A064481 base,easy,nonn %O A064481 1,2 %A A064481 Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Oct 03 2001 %E A064481 OFFSET changed from 0,2 to 1,2 by Harry J. Smith (hjsmithh(AT)sbcglobal.net), Sep 15 2009 Search completed in 0.001 seconds