{"width":"100%","author_url":"https://blog.hatena.ne.jp/ayato0211/","author_name":"ayato0211","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayato.hateblo.jp%2Fentry%2F20141117%2F1416232930\" title=\"\u30b3\u30e9\u30c3\u30c4\u306e\u554f\u984c\u305d\u306e2 - (define -ayalog &#39;())\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-11-17 23:02:10","image_url":null,"version":"1.0","blog_title":"(define -ayalog '())","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","url":"https://ayato.hateblo.jp/entry/20141117/1416232930","blog_url":"https://ayato.hateblo.jp/","categories":["JavaScript"],"height":"190","type":"rich","description":"\u3044\u3084\u3001\u904a\u3093\u3067\u305f\u3089\u666e\u901a\u306b\u6628\u65e5\u306e\u8a18\u9332\u8d85\u3048\u305f\u2026\u3002 console.time('xxx'); var max = 0, val, result; function collatz2(n){ var m = n, count = 0; while(m !== 1){ count++; m = (m & 1) ? (m<<1)+m+1 : m >> 1; } return count; } for(var i=2; i<=100001; i++){ val = collatz2(i); if(val > max){ max = val; result = i; } } console.log(result\u2026","title":"\u30b3\u30e9\u30c3\u30c4\u306e\u554f\u984c\u305d\u306e2"}