• Create Account

### #ActualKuroSei

Posted 07 June 2013 - 06:51 PM

If I am not totally mistaken you could calculate that without the loop entirely.
3 * (n+1) * (41 * n + 304) and the result divided by 200 where n is the upper limit for the loop.

Plus I'm not sure wether you even need those values or simply used the equotation for testing. :X
I'm quite tired so sorry if I'm offtopic.

I made some testing: I am mistaken. You need to use n-1.
For n = 10 i get 100.94 period9 and with my equotation for n=9 i get 100.95

With ( 3*n*(41*n+263) ) /200 i get 100.95 for n = 10.

It also checks for other values, so i guess Its fine now. X)

### #2KuroSei

Posted 07 June 2013 - 06:51 PM

If I am not totally mistaken you could calculate that without the loop entirely.
3 * (n+1) * (41 * n + 304) and the result divided by 200 where n is the upper limit for the loop.

Plus I'm not sure wether you even need those values or simply used the equotation for testing. :X
I'm quite tired so sorry if I'm offtopic.

I made some testing: I am mistaken. You need to use n-1.
For n = 10 i get 100.94 period9 and with my equotation for n=9 i get 100.95

With ( 3*n*(41*n+263) ) /200 i get 100.95 for n = 10.

It also checks for other values, so i guess Its fine now. X)

### #1KuroSei

Posted 07 June 2013 - 06:41 PM

If I am not totally mistaken you could calculate that without the loop entirely.
3 * (n+1) * (41 * n +  304)  and the result  divided by 200    where n is the upper limit for the loop.

Plus I'm not sure wether you even need those values or simply used the equotation for testing. :X

I'm quite tired so sorry if I'm offtopic.

PARTNERS
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8341028690338135, "perplexity": 1662.288258906546}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-10/segments/1394010795590/warc/CC-MAIN-20140305091315-00019-ip-10-183-142-35.ec2.internal.warc.gz"}