I just know the news/talk format in general is going to look vastly, VASTLY different in 2040. George Noory will be 90. Rush Limbaugh will likely not be with us. Sean Hannity will likely be retired. Syndicators will find new talent for news/talk but who? At this point, social media is the hot zone right now...NOT a 50KW AM. The future of even 50K AMs are even up in the air.
I'd say AM will die a slow and long death, likely be AM-to-FM transition similar to the DTV transition of 2009 (with exceptions for a few stations that need the rural/emergency audience like KRVN, KOA and WWL - albeit just simulcasting the FM) and by 2040 it may sound like current analog TV...nobody home and nothing but noise. Maybe Cuba will still blare Rebelde and Progreso into the atmosphere 24/7.
FM may survive a little better, but many current formats will not survive. I doubt classic rock and classic hits make it unless they are playing Adele and Linkin Park. DXing will likely be harder as the FCC forces every AM station onto FM, possibly with a financial incentive. A town like mine may be a little easier, as we only have one AM (KXLE-1240) and it's fully satellite talk and Seahawks/Mariners anyways. They never applied for an FM translator. But DXing in Spokane - Seattle - Boise - fuggitaboutit!! Translators will be on every open channel they can find PLUS possibly extra translators for nearby towns and in extreme cases, possibly on first-adjacents to locals.
TV DX might not even exist anymore. I wouldn't be surprised if the only TV band left is VHF by 2040, if they haven't fully transitioned to internet-fed apps like Pluto, Hulu and YouTube TV. They will use the rest of UHF by then for what will be 6G, 7G, 8G...
But who knows. We may be dealing with the effects of COVID-39 in early 2040, the 16th mutation of COVID-19. Let's hope not. Either that or the only FM station left on the air, with a dozen simulcasts, is K-LOVE and Air 1. Nooooooo!!