@alayna The perception that they aren't miserable **is** the delusion :)
Octave solution
This implementation uses memoization, resulting in a space complexity linear in K and time complexity linear in K*|X| for some K between 1 and N inclusive.
function count = step_orders(distance, permissible_steps = [1, 2])
memos = sparse(distance, 1);
hits = (memos ~= 0);
count = step_orders_stateful(distance);
function sub_count = step_orders_stateful(sub_distance)
sub_count = 0;
for first_step = permissible_steps
remainder = sub_distance - first_step;
if remainder > 0
if ~hits(remainder)
memos(remainder) = step_orders_stateful(remainder);
hits(remainder) = true; end;
sub_count += memos(remainder);
elseif remainder == 0
sub_count += 1; end; end; end; end;
@alayna People who actually want to be sober I am convinced are just delusional :)
discussion of solution
@Absinthe well part of that would require you to understand the various ways the golden ratio is derived so that when you see similar patterns in math you might connect them. Those factorial fractions are getting a bit close to some forms like this
\[
\varphi=\frac{13}{8}+\sum_{n=0}^{\infty}\frac{(-1)^{n+1}(2n+1)!}{4^{2n+3}n!(n+2)!}
\]
@serra Thats when the meditation starts getting good (altered states more accessible).. Congrats!
discussion of solution
@Absinthe Fibonocci sequence is just magic, accept it :)
Honestly I still try to understand its magic, and sometimes i get glimpses but I struggle with it too. I think if i get the bandwidth ill do the math on this one and maybe it will help us both understand.
Usually I dont have an instinct for fibonacci sequences in math until I am a step or two away from the derivation being complete.
@igeljaeger The consequence when law is a replacement for morality.. Companies do what the law dictates they must, not what morality would dictate is right.
As much as I agree Orange man = bad, if you take it to the level of dogma (I do give him credit for a few decent things he did) then I will take issue.
But I dont unfriend them, I just point out what their doing, they usually unfriend me :)
I dont follow Ellen but she is such a sweetie I do love her take on things.
I wish the ban-everyone-liberals of mastodon could learn a thing or two from her amazing maturity here.
https://www.theblaze.com/news/ellen-degeneres-responds-to-online-outrage
@Rasp@niu.moe I do agree and support with free speech. But as a counterpoint the Netherlands doesnt have free speech but if im protesting something here, and doing so legally I can garuntee you there is a MUCH smaller chance of me being assaulted by a cop than in america or being thrown in jail. Afterall in america you can be thrown in jail for a few days until your found innocent then next time you protest just thrown in again.
Point being freedom of speech is a good thing but its such a small part of the puzzle to a free society and sadly overall there really isnt much freedom left in america.
Hillary was bad but she didnt drive me away (though i didnt vote for her). It is the behavior of the democrat voters, not their politicians, that drove me away mostly.
@david It really depends a lot on what im doing or what my intentions are. Reason i like zooms for pictures of peoples face is more for the candid aspect. I dont like posed shots.
@david You can do anything and make it a portrait just depends on the look you want. I personally love the look of a zoom taking candids of people if done well. I just wouldnt call it a portrait lens is all
@david I dunno that doesnt really have the depth id expect of a proper portrait lens. Its a nice shot, but looks like it was taken with a zoom (as it was) which causes a lack of depth youd normally get.
They turned me. I do NOT like trump, but the dems behavior has me adamantly anti-dem as well now.
Their behavior has driven away many many people.
My mom is almost 80 years old. She’s was a lifelong democrat. The democrats now make her cringe. She hates what they stand for with a passion! She’s the type person who speaks her mind regardless of whether or not it pisses ppl off. My mom was a diehard DEM. But she’s been singing Trumps praises for the past 2.5 years to everyone she knows and she’s been blasting Dems to everyone as well. If Dems turned my mom against them there’s no doubt Dems have turned millions more against them
@ae So apparently my 4th grade teacher lied to me. He told me rusted pyrite was called apache tears (they look similar to the picture here but darker, but very cubic).. apparently Apache tears are something else though...
Jeffrey Phillips Freeman
Innovator & Entrepreneur in Machine Learning, Evolutionary Computing & Big Data. Avid SCUBA diver, Open-source developer, HAM radio operator, astrophotographer, and anything nerdy.
Born and raised in Philadelphia, PA, USA, currently living in Utrecht, Netherlands, USA, and Thailand. Was also living in Israel, but left.
Pronouns: Sir / Mister
(Above pronouns are not intended to mock, i will respect any persons pronouns and only wish pronouns to show respect be used with me as well. These are called neopronouns, see an example of the word "frog" used as a neopronoun here: http://tinyurl.com/44hhej89 )
A proud member of the Penobscot Native American tribe, as well as a Mayflower passenger descendant. I sometimes post about my genealogical history.
My stance on various issues:
Education: Free to PhD, tax paid
Abortion: Protected, tax paid, limited time-frame
Welfare: Yes, no one should starve
UBI: No, use welfare
Racism: is real
Guns: Shall not be infringed
LGBT+/minorities: Support
Pronouns: Will respect
Trump: Moron, evil
Biden: Senile, racist
Police: ACAB
Drugs: Fully legal, no prescriptions needed
GPG/PGP Fingerprint: 8B23 64CD 2403 6DCB 7531 01D0 052D DA8E 0506 CBCE