A323142 Envelope numbers (see the Comments section for the definition).
100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 700, 701, 702, 703, 704
Offset: 1
Examples
100 has a Content of 0 which is indeed a multiple of the Envelope 10 (0 = 10*0) 101 has a Content of 0 which is indeed a multiple of the Envelope 11 (0 = 11*0) 102 has a Content of 0 which is indeed a multiple of the Envelope 12 (0 = 12*0) ... 1100 has a Content of 10 which is indeed a multiple of the Envelope 10 (10 = 10*1) 1111 has a Content of 11 which is indeed a multiple of the Envelope 11 (11 = 11*1) 1122 has a Content of 12 which is indeed a multiple of the Envelope 12 (12 = 12*1) ... 1263 has a Content of 26 which is indeed a multiple of the Envelope 13 (26 = 13*2)
Links
- Jean-Marc Falcoz, Table of n, a(n) for n = 1..20001
Programs
-
Mathematica
Select[Range[100, 704], Or[#1 == 0, Mod[#1, #2] == 0] & @@ {If[And[First@ # == 0, Length@ # > 1], -1, FromDigits@ #] &@ Most@ Rest@ #, FromDigits@ {First@ #, Last@ #}} &@ IntegerDigits@ # &] (* Michael De Vlieger, Jan 07 2019 *)
-
PARI
isok(n,base=10) = my (d=digits(n,base)); #d>=3 && (#d==3 || d[2]) && ((n-d[1]*base^(#d-1))\base) % (d[1]*base+d[#d])==0 \\ Rémy Sigrist, Jan 06 2019
Comments