Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
murbard2
on June 12, 2015
|
parent
|
context
|
favorite
| on:
Fear and Loathing with APL
Sure, this is how you compute Hofstader's Q sequence in J
Q=: 1:`(+&$:/@:- $:@-& 1 2)@.(>&2)"0 M.
http://rosettacode.org/wiki/Hofstadter_Q_sequence#J
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Q=: 1:`(+&$:/@:- $:@-& 1 2)@.(>&2)"0 M.
http://rosettacode.org/wiki/Hofstadter_Q_sequence#J