All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Sum Six Digit Even Numbers (Posted on 2023-08-22) Difficulty: 3 of 5
Determine the sum of all possible values of a six digit (non leading zero) even number N that uses only the digits 0, 1, 2, 3, 4, 5.
  • All the six digits may not appear in N, so that 543210 is NOT a valid entry.
  • Some of these six digits can be repeated more than once in N.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: different answer | Comment 3 of 4 |
(In reply to different answer by Charlie)

The line


if ~isequal(ns,unique(ns))

should have been

if ~isequal(sort(ns),unique(ns))

as the unique function returns a sorted value

After correction, the answer comes out the same as Larry's




  Posted by Charlie on 2023-08-22 14:49:03
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information