[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A050250 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Number of nonzero palindromes less than 10^n.
(history; published version)
#65 by Michael De Vlieger at Mon Oct 16 18:28:01 EDT 2023
STATUS

reviewed

approved

#64 by Robert C. Lyons at Mon Oct 16 18:09:21 EDT 2023
STATUS

proposed

reviewed

#63 by Darío Clavijo at Mon Oct 16 15:27:28 EDT 2023
STATUS

editing

proposed

Discussion
Mon Oct 16
15:28
Darío Clavijo: solved...
15:54
Michael S. Branicky: thanks!
#62 by Darío Clavijo at Mon Oct 16 15:27:19 EDT 2023
PROG

a = lambda n:((10**(n>>1))-1)<<1 if n & 1 == 0 else (11*(10**(n>>1)))-2 # _Darío Clavijo, Oct 16 2023

def a(n):

m = 10 ** (n >> 1)

if n & 1 == 0:

return (m - 1) << 1

else:

return (11 * m) - 2 # Darío Clavijo, Oct 16 2023

#61 by Alois P. Heinz at Mon Oct 16 14:35:24 EDT 2023
STATUS

proposed

editing

Discussion
Mon Oct 16
14:52
Michael S. Branicky: should use "def a(n): return ..." (this is not code golf)
#60 by Darío Clavijo at Mon Oct 16 13:43:54 EDT 2023
STATUS

editing

proposed

Discussion
Mon Oct 16
14:35
Alois P. Heinz: name is not clickable ...
#59 by Darío Clavijo at Mon Oct 16 13:43:28 EDT 2023
PROG

(Python)

a = lambda n:((10**(n>>1))-1)<<1 if n & 1 == 0 else (11*(10**(n>>1)))-2 # _Darío Clavijo, Oct 16 2023

STATUS

approved

editing

#58 by Michael De Vlieger at Sat Jun 11 07:54:08 EDT 2022
STATUS

reviewed

approved

#57 by Peter Luschny at Sat Jun 11 06:00:15 EDT 2022
STATUS

proposed

reviewed

#56 by Peter Luschny at Sat Jun 11 06:00:10 EDT 2022
STATUS

editing

proposed