A244471 Lexicographically earliest sequence of integers with property that if a vertical line is drawn between any pair of adjacent digits, the number Z formed by the digits to the left of the line is divisible by the digit to the right of the line.
1, 11, 3, 7, 71, 31, 111, 113, 33, 117, 77, 13, 37, 711, 1111, 19, 9, 91, 1117, 73, 311, 131, 1131, 1133, 93, 331, 11111, 39, 99, 97, 119, 333, 911, 133, 931, 1139, 771, 337, 713, 339, 933, 391, 1137, 773, 1113, 991, 11171, 3111, 777, 3311, 79, 17, 191, 171, 11311, 137, 719, 993
Offset: 1
Examples
After 1,11,3,7, let a(5) = x be the next term. Now 11137 = 7*37*43, so x must begin with 1 or 7. The candidates for x are therefore 12,13,...,19,71,72,,...,79,111,... If x=12, we would get 1 11 3 7 12 ... but Z = 11371 is prime and is not divisible by 2, ..., 9. So x is not 12, ...,19. The next candidate is x=71, and this works. So a(5)=71.
References
- Eric Angelini, Posting to Sequence Fans Mailing List, Jun 26 2014
Links
- Robert G. Wilson v and Hans Havermann (Robert G. Wilson v to 1000), Table of n, a(n) for n = 1..10850
Programs
-
Mathematica
r=f=e={1,3,7,9};Do[e=10*e;f=Flatten[Table[e[[i]]+f,{i,4}]];r=Join[r,f],{9}];r=Select[r,Intersection[Partition[IntegerDigits[#],3,1],IntegerDigits[{313,319,373,379,717,737,797,913,919,939,973,979}]]=={}&];t=0;Do[c=1;While[d=IntegerDigits[r[[c]]];Union[Table[IntegerQ[(10^i*t+FromDigits[Take[d,i]])/d[[i+1]]],{i,0,Length[d]-1}]]!={True},c++];Print[r[[c]]];t=10^Length[d]*t+r[[c]];r=Delete[r,c],{10850}] (* Hans Havermann, Jul 04 2014 *)
Extensions
Corrected and extended by Hans Havermann, Jul 02 2014
Comments