Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 79471

The challenge involves mathematics. Also consider using more specific tags: [number] [number-theory] [arithmetic] [combinatorics] [graph-theory] [geometry] [abstract-algebra].

8
votes
Python 3, 53 50 48 bytes edit: -5 bytes thanks to Dennis ! lambda p,x:eval(p.translate({94:"**",120:"*x"})) Try it online! Used translate to avoid chaining replace calls; Python 3's version of …
answered Jun 4 '18 by etene
1
vote
Python 3, 114 110 109 116 bytes Actually would have taken two bytes less in Python 2 because exec is a statement and doesn't need parentheses... Saved 4 extra bytes thanks to @ElPedro Saved an extr …
answered Apr 27 '18 by etene
3
votes
Python 2 and 3, 50 bytes Recursive approach like most of the answers: f=lambda n,r=0:f(n-1,r+n)+f(n-1,r-n)if n else r==0 Try it online The double recursive call takes too much bytes... There's …
answered Apr 3 '18 by etene