A069521
Smallest multiple of n with digit sum = 2, or 0 if no such number exists, e.g., a(3k)=0.
2, 2, 0, 20, 20, 0, 1001, 200, 0, 20, 11, 0, 1001, 10010, 0, 2000, 100000001, 0, 1000000001, 20, 0, 110, 100000000001, 0, 200, 10010, 0, 100100, 100000000000001, 0, 0, 20000, 0, 1000000010, 10010, 0, 0, 10000000010, 0, 200, 0, 0, 0, 1100, 0,...
A186635
Primes p such that the decimal expansion of 1/p has a periodic part of odd length.
2, 3, 5, 31, 37, 41, 43, 53, 67, 71, 79, 83, 107, 151, 163, 173, 191, 199, 227, 239, 271, 277, 283, 307, 311, 317, 347, 359, 397, 431, 439, 443, 467, 479, 523, 547, 563, 587, 599, 613, 631, 643, 683, 719, 733, 751, 757, 773, 787, 797, 827, 839, 853, 883, 907, 911, 919, 947, 991, 1013, 1031, 1039, 1093, 1123, 1151, 1163, 1187
It seems to be a match between these two sequences, what do you think?
A number has digit sum 2 exactly when it's twice a power of 10 (the only primes dividing these are 2 and 5) or it's 10^a+10^b for distinct a,b. So a prime p divides some such number precisely when it divides some 10^c+1; in other words, if -1 is a power of 10; in other words, if the order of 10 mod p is even.
The length of the periodic part of the base-10 expansion of 1/p is precisely the order of 10 mod p.
So, for p other than 2 or 5, A069521(p)=0 iff p is in A186635.
--
g
--
You received this message because you are subscribed to the Google Groups "SeqFan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seqfan+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/b17bf886-e266-45da-bbd9-9f3e8d92bc0d%40pobox.com.