This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
items = [] | |
values = Array.new(1000) do |i| | |
n = i + 2 | |
x = (n ** 2) / 2 | |
y = Integer.sqrt(x) | |
value = x % y | |
items << [n, x, y, value] | |
value | |
end | |
IO.write('a338277_values.csv', values.join("\n")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bfile(name, v, offset=1, limit=1000)={ | |
my(cur=offset-1,F); | |
for(i=1,#v, | |
if (#Str(v[i]) > limit, | |
print("Next term has "#Str(v[i])" digits; exiting."); | |
break | |
); | |
my(s=Str(cur++, " ", v[i])); | |
print(s); | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tqdm import tqdm | |
import whois | |
import csv | |
# Base parts of the names to combine | |
base_parts = [ | |
'paper', 'rock', 'scissors', | |
] | |
# Suffixes to append |
OlderNewer