?'+)=:!@/*"*'6/{=+'+}/{
এটি অনলাইন চেষ্টা করুন!
ব্যাখ্যা
দুচোখে:
? ' + )
= : ! @ /
* " * ' 6 /
{ = + ' + } /
{ . . . . .
. . . . .
. . . .
এটি সত্যিই কেবল একটি লিনিয়ার প্রোগ্রাম যা /কিছু পুনর্নির্দেশের জন্য ব্যবহৃত for লিনিয়ার কোডটি হ'ল:
?'+){=+'+}*"*'6{=:!@
কোন গণনা এন (এন + 1) (2 এন + 1) / 6 । এটি নিম্নলিখিত মেমরি প্রান্ত ব্যবহার করে:

যেখানে মেমরি পয়েন্ট (এমপি) প্রান্তে শুরু হয় এন লেবেলযুক্ত , উত্তরটি নির্দেশ করছে।
? Read input into edge labelled 'n'.
' Move MP backwards onto edge labelled 'n+1'.
+ Copy 'n' into 'n+1'.
) Increment the value (so that it actually stores the value n+1).
{= Move MP forwards onto edge labelled 'temp' and turn around to face
edges 'n' and 'n+1'.
+ Add 'n' and 'n+1' into edge 'temp', so that it stores the value 2n+1.
' Move MP backwards onto edge labelled '2n+1'.
+ Copy the value 2n+1 into this edge.
} Move MP forwards onto 'temp' again.
* Multiply 'n' and 'n+1' into edge 'temp', so that it stores the value
n(n+1).
" Move MP backwards onto edge labelled 'product'.
* Multiply 'temp' and '2n+1' into edge 'product', so that it stores the
value n(n+1)(2n+1).
' Move MP backwards onto edge labelled '6'.
6 Store an actual 6 there.
{= Move MP forwards onto edge labelled 'result' and turn around, so that
the MP faces edges 'product' and '6'.
: Divide 'product' by '6' into 'result', so that it stores the value
n(n+1)(2n+1)/6, i.e. the actual result.
! Print the result.
@ Terminate the program.
তাত্ত্বিকভাবে এই প্রোগ্রামটি পার্শ্ব-দৈর্ঘ্য 3 এ ফিট করা সম্ভব হতে পারে, কারণ /গণনাটির জন্য প্রয়োজন হয় না, :প্রোগ্রামটি শেষ করতে পুনরায় ব্যবহার করা যেতে পারে, এবং কিছু '"=+*{সংখ্যক পুনরায় ব্যবহারযোগ্য হতে পারে, প্রয়োজনীয় সংখ্যার সংখ্যা নিয়ে আসে bringing 19 এর নিচে কমান্ড (পাশের দৈর্ঘ্যের 3 জন্য সর্বোচ্চ)। আমি সন্দেহ করি যে হাত থেকে এই জাতীয় সমাধান পাওয়া সম্ভব যদিও একটির অস্তিত্ব থাকলে।
f(1) == 1 * 1 (1)এবংf(24) == 70 * 70 (4900)।