Cody

# Problem 1655. sum of first 'n' terms

Solution 408377

Submitted on 23 Feb 2014 by Vivek
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%%sum of first 'n' terms n = 10; y = 55; assert(isequal(summation(n),y))

ans = 55

2   Pass
%%sum of first 'n' terms n = 0; y = 0; assert(isequal(summation(n),y))

ans = 0

3   Pass
%%sum of first 'n' terms n = 17; y = 153; assert(isequal(summation(n),y))

ans = 153
{"ft_lang_label":"__label__en","ft_lang_prob":0.579608,"math_prob":0.9945122,"size":569,"snap":"2020-24-2020-29","text_gpt3_token_len":189,"char_repetition_ratio":0.11681416,"word_repetition_ratio":0.11881188,"special_character_ratio":0.35500878,"punctuation_ratio":0.102564104,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9987087,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-05T23:52:33Z\",\"WARC-Record-ID\":\"<urn:uuid:1f4a8b98-1709-45f4-8261-b9a6ec808691>\",\"Content-Length\":\"71948\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0d5b110b-56ea-403f-856a-01de4b38c022>\",\"WARC-Concurrent-To\":\"<urn:uuid:169c41f8-d49a-4db5-9316-4f8102918b96>\",\"WARC-IP-Address\":\"23.66.56.59\",\"WARC-Target-URI\":\"https://fr.mathworks.com/matlabcentral/cody/problems/1655-sum-of-first-n-terms/solutions/408377\",\"WARC-Payload-Digest\":\"sha1:U5LQ7WI2ZLRDK2Q7AWYJZ6CETWVCMNRF\",\"WARC-Block-Digest\":\"sha1:W6OVT5FLEFFGW34RLSRJJDZ5KBKIZJXY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655889877.72_warc_CC-MAIN-20200705215728-20200706005728-00332.warc.gz\"}"}