Talk:Hofstadter Q sequence: Difference between revisions

(→‎Recursion limit issue: added comment about "not all examples define Q as a function. -- ~~~~)
 
(10 intermediate revisions by 4 users not shown)
Line 1:
==found the 100000th term,any news?==
so i found the 100000th term,and ive heard something about the challenge...why no one have solved it?then i tried,just for its lovely chaos,i found it.i used a modified python code for this.i just modified it so that i could list up the numbers...
p.s. also,the file was too big to post it as a plain text,so i posted it in my "repository".anyways,kindly check it for me.if the choices are valid.ill try a second run,if requested
 
[http://geocities.ws/pluman/qseq/ the website,includes the code and the output]
 
more stories to come!
 
edit:i found out,in my 3gb of ram,the computer crashed when computing the 2^27 th term.it was a good ride,hte explorer crashed,waitng for that blue scree,and python saved it..memoryerror
 
edit:my highest,i think is this:q(26)34289195
--[[User:Laptops|Laptops]] ([[User talk:Laptops|talk]]) 12:56, 3 June 2015 (UTC)
 
: This is not challenge site, and the task is not meant to be a challenge, especially not the 100,000th term, which many of the code examples on the task can already do. That number is mentioned somewhere on this talk page because it causes very deep recursions and stack overflow if you use a purely recursive method, but it's nothing special. --[[User:Ledrug|Ledrug]] ([[User talk:Ledrug|talk]]) 20:36, 3 June 2015 (UTC)
 
:: Indeed, I just checked, and as of today, only 5 computer programming examples (out of 49) &nbsp; ''didn't'' &nbsp; execute their programs with (or for) 100,000 terms. &nbsp; It should be noted that this Rosetta Code task didn't specifically ask for (displaying) the 100,000<sup>th</sup> term, so almost every example didn't show it. &nbsp; I modified the three REXX programming examples to show the 100,000<sup>th</sup> term; &nbsp; it was a very minor addition to one of the existing REXX statement. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:07, 3 June 2015 (UTC)
 
:: I just added support to show the 1,000,000<sup>th</sup> term for the three REXX programming examples, it was no big deal (even for the recursive example). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:26, 3 June 2015 (UTC)
 
==Python non-recursive solution==
Thanks Ledrug. I had a brain freeze on removing the recursion and blundered on with the accommodation of the recursion limit solution. --[[User:Paddy3118|Paddy3118]] 18:34, 23 October 2011 (UTC)
Line 17 ⟶ 36:
: It appears that all <nowiki><math></nowiki> handling on this page is entirely broken (I tested with a very simple version that shouldn't have required an external renderer; “<tt><nowiki><math>1</math></nowiki></tt>” which renders as “<math>1</math>”). Haven't checked on other pages yet (not that I expect it to be working there) but it could be associated with the recent updates. –[[User:Dkf|Donal Fellows]] 09:09, 14 December 2011 (UTC)
:: [http://irclog.perlgeek.de/rosettacode/2011-12-14 IRC log] says that <nowiki><math></nowiki> now works. However, I find that <nowiki><math></nowiki> remains broken until someone edits the page. I fixed this page with [http://rosettacode.org/mw/index.php?title=Hofstadter_Q_sequence&diff=128336&oldid=128261 a minor edit to Ruby]. Any single edit seems to reset the cache, so <nowiki><math></nowiki> works again. --[[User:Kernigh|Kernigh]] 19:00, 14 December 2011 (UTC)
 
 
==Formulae hidden to most browsers by under-tested cosmetic edits at 03:46, 20 April 2016 ==
 
Under-tested cosmetic edits made to the task page at 03:46, 20 April 2016, including the injection of spaces around expressions in &lt;math&gt; tags, have left some or all of the task description formulae completely invisible to all browsers which display the graphic file version of formulae rather than processing the MathML (this is, in fact, the majority of browsers). The MediaWiki processor does not currently expect such spaces, and generates syntactically ill-formed HTML if they are introduced. Other aspects of these cosmetic edits may further compound the problem. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 19:53, 22 September 2016 (UTC)
 
: Repaired today [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 21:55, 13 November 2016 (UTC)
9,655

edits