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*

17
  • \$\begingroup\$ Hm, how do you come to a byte count of 488? I count 545 from i to }? And please specify 0-tolerance. \$\endgroup\$ Commented Apr 9, 2016 at 23:46
  • \$\begingroup\$ Aren't your examples a(9) and a(19) or a(8) and a(18), according to which version of it on OEIS you took? \$\endgroup\$ Commented Apr 9, 2016 at 23:54
  • \$\begingroup\$ @BjörnKautler I'll post a link to the byte counter when I get home. What do you mean by 0-tolerance? The first value is a(1) = 0 \$\endgroup\$ Commented Apr 9, 2016 at 23:55
  • \$\begingroup\$ From the OP: "The cop's task is to write a program/function that takes a positive (or non-negative) integer and outputs/returns another integer. The cop must state it if the program is intolerant towards zero." So I guess you take the input 1 as 0 and this also explains the shift in position, according to the OEIS sequence. \$\endgroup\$ Commented Apr 9, 2016 at 23:58
  • \$\begingroup\$ @BjörnKautler OK, thanks. The program doesn't crash if 0 is entered but the sequence starts at index 1, so I guess it's zero-intolerant. \$\endgroup\$ Commented Apr 10, 2016 at 0:02