Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • \$\begingroup\$ haha, nice one! \$\endgroup\$ Commented Jan 18, 2017 at 2:37
  • \$\begingroup\$ also, shorter: lambda n:range(0,(n-8582)*20,n-8582) \$\endgroup\$ Commented Jan 18, 2017 at 2:40
  • \$\begingroup\$ @Maltysen Spec said program, so I went with that. I'll ask. \$\endgroup\$ Commented Jan 18, 2017 at 2:40
  • 2
    \$\begingroup\$ Good idea, but I don't think the range 21016-21999 consists entirely of reciprocals. For example, A21021 is 1, 33, 727, 13365, 221431, 3428733, ..., not the decimal digits of 1/17. I haven't checked to see which sequences are reciprocals and which ones aren't. \$\endgroup\$ Commented Jan 18, 2017 at 8:32
  • 1
    \$\begingroup\$ @xnor However many matches you get, you can combine it with my answer to add another 252 to the count: if the input is not in the range 21016-21999, output 20 0's. (None of my 252 sequences lie in that range.) \$\endgroup\$ Commented Jan 18, 2017 at 8:46