cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A076924 Smallest multiple of the n-th prime not containing any of its digits, or 0 if no such number exists.

This page as a plain text file.
%I A076924 #13 Jul 21 2020 10:33:56
%S A076924 4,6,10,14,22,26,34,38,46,58,62,111,82,86,188,106,118,244,134,284,146,
%T A076924 158,166,267,388,2222,824,428,327,226,508,262,548,278,2086,302,628,
%U A076924 489,334,692,358,362,382,772,2364,2388,633,446,454,458,466,478,3856,4769
%N A076924 Smallest multiple of the n-th prime not containing any of its digits, or 0 if no such number exists.
%C A076924 a(n) = 0 if and only if prime(n) contains all decimal digits with the possible exception of 0.  Otherwise, if n > 3 and p=prime(n) does not contain the nonzero digit k, the repdigit (10^m-1)*k/9 is a multiple of p where m is the order of 10 mod p. - _Robert Israel_, Jul 21 2020
%H A076924 Robert Israel, <a href="/A076924/b076924.txt">Table of n, a(n) for n = 1..10000</a>
%F A076924 a(n) = A074157(prime(n)). - _Robert Israel_, Jul 21 2020
%p A076924 f:= proc(n) local p, k,r,D;
%p A076924   D:= convert(convert(n,base,10),set);
%p A076924   for k from 2 to 10^(1+ilog10(n)) do
%p A076924     r:= k*n;
%p A076924     if convert(convert(r,base,10),set) intersect D = {} then return r fi
%p A076924   od;
%p A076924   error ("search failed for n=%1",n)
%p A076924 end proc:
%p A076924 seq(f(ithprime(i)),i=1..100); # _Robert Israel_, Jul 21 2020
%t A076924 smp[p_]:=Module[{k=2},While[ContainsAny[IntegerDigits[k*p], IntegerDigits[ p]],k++];k*p]; Table[smp[p],{p,Prime[Range[60]]}] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Nov 19 2019 *)
%Y A076924 Cf. A074157, A076925.
%K A076924 base,nonn
%O A076924 1,1
%A A076924 _Amarnath Murthy_, Oct 17 2002
%E A076924 Corrected and extended by _Ray Chandler_, Feb 11 2005